/kernel/linux/linux-6.6/lib/zstd/compress/ |
H A D | zstd_compress_literals.c | 16 size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize) in ZSTD_noCompressLiterals() argument 21 RETURN_ERROR_IF(srcSize + flSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_noCompressLiterals() 43 size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSize) in ZSTD_compressRleLiteralsBlock() argument 48 (void)dstCapacity; /* dstCapacity already guaranteed to be >=4, hence large enough */ in ZSTD_compressRleLiteralsBlock() 73 void* dst, size_t dstCapacity, in ZSTD_compressLiterals() 93 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals() 98 if (srcSize <= minLitSize) return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals() 101 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); in ZSTD_compressLiterals() 107 ostart+lhSize, dstCapacity in ZSTD_compressLiterals() 70 ZSTD_compressLiterals(ZSTD_hufCTables_t const* prevHuf, ZSTD_hufCTables_t* nextHuf, ZSTD_strategy strategy, int disableLiteralCompression, void* dst, size_t dstCapacity, const void* src, size_t srcSize, void* entropyWorkspace, size_t entropyWorkspaceSize, const int bmi2, unsigned suspectUncompressible) ZSTD_compressLiterals() argument [all...] |
H A D | zstd_compress_sequences.c | 243 ZSTD_buildCTable(void* dst, size_t dstCapacity, in ZSTD_buildCTable() argument 252 const BYTE* const oend = op + dstCapacity; in ZSTD_buildCTable() 253 DEBUGLOG(6, "ZSTD_buildCTable (dstCapacity=%u)", (unsigned)dstCapacity); in ZSTD_buildCTable() 258 RETURN_ERROR_IF(dstCapacity==0, dstSize_tooSmall, "not enough space"); in ZSTD_buildCTable() 292 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_body() 304 ERR_isError(BIT_initCStream(&blockStream, dst, dstCapacity)), in ZSTD_encodeSequences_body() 306 DEBUGLOG(6, "available space for bitstream : %i (dstCapacity=%u)", in ZSTD_encodeSequences_body() 308 (unsigned)dstCapacity); in ZSTD_encodeSequences_body() 386 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_default() 291 ZSTD_encodeSequences_body( void* dst, size_t dstCapacity, FSE_CTable const* CTable_MatchLength, BYTE const* mlCodeTable, FSE_CTable const* CTable_OffsetBits, BYTE const* ofCodeTable, FSE_CTable const* CTable_LitLength, BYTE const* llCodeTable, seqDef const* sequences, size_t nbSeq, int longOffsets) ZSTD_encodeSequences_body() argument 385 ZSTD_encodeSequences_default( void* dst, size_t dstCapacity, FSE_CTable const* CTable_MatchLength, BYTE const* mlCodeTable, FSE_CTable const* CTable_OffsetBits, BYTE const* ofCodeTable, FSE_CTable const* CTable_LitLength, BYTE const* llCodeTable, seqDef const* sequences, size_t nbSeq, int longOffsets) ZSTD_encodeSequences_default() argument 403 ZSTD_encodeSequences_bmi2( void* dst, size_t dstCapacity, FSE_CTable const* CTable_MatchLength, BYTE const* mlCodeTable, FSE_CTable const* CTable_OffsetBits, BYTE const* ofCodeTable, FSE_CTable const* CTable_LitLength, BYTE const* llCodeTable, seqDef const* sequences, size_t nbSeq, int longOffsets) ZSTD_encodeSequences_bmi2() argument 419 ZSTD_encodeSequences( void* dst, size_t dstCapacity, FSE_CTable const* CTable_MatchLength, BYTE const* mlCodeTable, FSE_CTable const* CTable_OffsetBits, BYTE const* ofCodeTable, FSE_CTable const* CTable_LitLength, BYTE const* llCodeTable, seqDef const* sequences, size_t nbSeq, int longOffsets, int bmi2) ZSTD_encodeSequences() argument [all...] |
H A D | zstd_compress_literals.h | 17 size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize); 19 size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSize); 25 void* dst, size_t dstCapacity,
|
H A D | zstd_compress.c | 2487 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSeqStore_internal() 2503 BYTE* const oend = ostart + dstCapacity; in ZSTD_entropyCompressSeqStore_internal() 2525 op, dstCapacity, in ZSTD_entropyCompressSeqStore_internal() 2530 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSeqStore_internal() 2605 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSeqStore() 2612 dst, dstCapacity, in ZSTD_entropyCompressSeqStore() 2615 /* When srcSize <= dstCapacity, there is enough space to write a raw uncompressed block. in ZSTD_entropyCompressSeqStore() 2618 if ((cSize == ERROR(dstSize_tooSmall)) & (srcSize <= dstCapacity)) in ZSTD_entropyCompressSeqStore() 2871 const size_t dstCapacity = ZSTD_compressBound(srcSize); in ZSTD_generateSequences() local 2872 void* dst = ZSTD_customMalloc(dstCapacity, ZSTD_defaultCMe in ZSTD_generateSequences() 2483 ZSTD_entropyCompressSeqStore_internal(seqStore_t* seqStorePtr, const ZSTD_entropyCTables_t* prevEntropy, ZSTD_entropyCTables_t* nextEntropy, const ZSTD_CCtx_params* cctxParams, void* dst, size_t dstCapacity, void* entropyWorkspace, size_t entropyWkspSize, const int bmi2) ZSTD_entropyCompressSeqStore_internal() argument 2601 ZSTD_entropyCompressSeqStore(seqStore_t* seqStorePtr, const ZSTD_entropyCTables_t* prevEntropy, ZSTD_entropyCTables_t* nextEntropy, const ZSTD_CCtx_params* cctxParams, void* dst, size_t dstCapacity, size_t srcSize, void* entropyWorkspace, size_t entropyWkspSize, int bmi2) ZSTD_entropyCompressSeqStore() argument 3407 ZSTD_compressSeqStore_singleBlock(ZSTD_CCtx* zc, seqStore_t* const seqStore, repcodes_t* const dRep, repcodes_t* const cRep, void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 lastBlock, U32 isPartition) ZSTD_compressSeqStore_singleBlock() argument 3553 ZSTD_compressBlock_splitBlock_internal(ZSTD_CCtx* zc, void* dst, size_t dstCapacity, const void* src, size_t blockSize, U32 lastBlock, U32 nbSeq) ZSTD_compressBlock_splitBlock_internal() argument 3642 ZSTD_compressBlock_splitBlock(ZSTD_CCtx* zc, void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 lastBlock) ZSTD_compressBlock_splitBlock() argument 3672 ZSTD_compressBlock_internal(ZSTD_CCtx* zc, void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 frame) ZSTD_compressBlock_internal() argument 3735 ZSTD_compressBlock_targetCBlockSize_body(ZSTD_CCtx* zc, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const size_t bss, U32 lastBlock) ZSTD_compressBlock_targetCBlockSize_body() argument 3790 ZSTD_compressBlock_targetCBlockSize(ZSTD_CCtx* zc, void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 lastBlock) ZSTD_compressBlock_targetCBlockSize() argument 3841 ZSTD_compress_frameChunk(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 lastFrameChunk) ZSTD_compress_frameChunk() argument 3921 ZSTD_writeFrameHeader(void* dst, size_t dstCapacity, const ZSTD_CCtx_params* params, U64 pledgedSrcSize, U32 dictID) ZSTD_writeFrameHeader() argument 3975 ZSTD_writeSkippableFrame(void* dst, size_t dstCapacity, const void* src, size_t srcSize, unsigned magicVariant) ZSTD_writeSkippableFrame() argument 3994 ZSTD_writeLastEmptyBlock(void* dst, size_t dstCapacity) ZSTD_writeLastEmptyBlock() argument 4020 ZSTD_compressContinue_internal(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 frame, U32 lastFrameChunk) ZSTD_compressContinue_internal() argument 4081 ZSTD_compressContinue(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_compressContinue() argument 4097 ZSTD_compressBlock(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_compressBlock() argument 4495 ZSTD_writeEpilogue(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity) ZSTD_writeEpilogue() argument 4540 ZSTD_compressEnd(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_compressEnd() argument 4566 ZSTD_compress_advanced(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const void* dict,size_t dictSize, ZSTD_parameters params) ZSTD_compress_advanced() argument 4583 ZSTD_compress_advanced_internal( ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const void* dict,size_t dictSize, const ZSTD_CCtx_params* params) ZSTD_compress_advanced_internal() argument 4597 ZSTD_compress_usingDict(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const void* dict, size_t dictSize, int compressionLevel) ZSTD_compress_usingDict() argument 4612 ZSTD_compressCCtx(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, int compressionLevel) ZSTD_compressCCtx() argument 4622 ZSTD_compress(void* dst, size_t dstCapacity, const void* src, size_t srcSize, int compressionLevel) ZSTD_compress() argument 4997 ZSTD_compress_usingCDict_internal(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const ZSTD_CDict* cdict, ZSTD_frameParameters fParams) ZSTD_compress_usingCDict_internal() argument 5009 ZSTD_compress_usingCDict_advanced(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const ZSTD_CDict* cdict, ZSTD_frameParameters fParams) ZSTD_compress_usingCDict_advanced() argument 5022 ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const ZSTD_CDict* cdict) ZSTD_compress_usingCDict() argument 5507 ZSTD_compressStream2_simpleArgs( ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, size_t* dstPos, const void* src, size_t srcSize, size_t* srcPos, ZSTD_EndDirective endOp) ZSTD_compressStream2_simpleArgs() argument 5522 ZSTD_compress2(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_compress2() argument 5802 ZSTD_compressSequences_internal(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const ZSTD_Sequence* inSeqs, size_t inSeqsSize, const void* src, size_t srcSize) ZSTD_compressSequences_internal() argument 5914 ZSTD_compressSequences(ZSTD_CCtx* const cctx, void* dst, size_t dstCapacity, const ZSTD_Sequence* inSeqs, size_t inSeqsSize, const void* src, size_t srcSize) ZSTD_compressSequences() argument [all...] |
H A D | zstd_compress_sequences.h | 32 ZSTD_buildCTable(void* dst, size_t dstCapacity, 41 void* dst, size_t dstCapacity,
|
H A D | zstd_compress_superblock.c | 164 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_sequences() 169 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_sequences() 265 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock() 272 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock() 430 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_multi() 444 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_multi() 552 void* dst, size_t dstCapacity, in ZSTD_compressSuperBlock() 569 dst, dstCapacity, in ZSTD_compressSuperBlock() 159 ZSTD_compressSubBlock_sequences(const ZSTD_fseCTables_t* fseTables, const ZSTD_fseCTablesMetadata_t* fseMetadata, const seqDef* sequences, size_t nbSeq, const BYTE* llCode, const BYTE* mlCode, const BYTE* ofCode, const ZSTD_CCtx_params* cctxParams, void* dst, size_t dstCapacity, const int bmi2, int writeEntropy, int* entropyWritten) ZSTD_compressSubBlock_sequences() argument 259 ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, const ZSTD_entropyCTablesMetadata_t* entropyMetadata, const seqDef* sequences, size_t nbSeq, const BYTE* literals, size_t litSize, const BYTE* llCode, const BYTE* mlCode, const BYTE* ofCode, const ZSTD_CCtx_params* cctxParams, void* dst, size_t dstCapacity, const int bmi2, int writeLitEntropy, int writeSeqEntropy, int* litEntropyWritten, int* seqEntropyWritten, U32 lastBlock) ZSTD_compressSubBlock() argument 425 ZSTD_compressSubBlock_multi(const seqStore_t* seqStorePtr, const ZSTD_compressedBlockState_t* prevCBlock, ZSTD_compressedBlockState_t* nextCBlock, const ZSTD_entropyCTablesMetadata_t* entropyMetadata, const ZSTD_CCtx_params* cctxParams, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const int bmi2, U32 lastBlock, void* workspace, size_t wkspSize) ZSTD_compressSubBlock_multi() argument 551 ZSTD_compressSuperBlock(ZSTD_CCtx* zc, void* dst, size_t dstCapacity, void const* src, size_t srcSize, unsigned lastBlock) ZSTD_compressSuperBlock() argument
|
H A D | zstd_compress_superblock.h | 28 void* dst, size_t dstCapacity,
|
H A D | zstd_compress_internal.h | 503 MEM_STATIC size_t ZSTD_noCompressBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 lastBlock) in ZSTD_noCompressBlock() argument 506 RETURN_ERROR_IF(srcSize + ZSTD_blockHeaderSize > dstCapacity, in ZSTD_noCompressBlock() 513 MEM_STATIC size_t ZSTD_rleCompressBlock (void* dst, size_t dstCapacity, BYTE src, size_t srcSize, U32 lastBlock) in ZSTD_rleCompressBlock() argument 517 RETURN_ERROR_IF(dstCapacity < 4, dstSize_tooSmall, ""); in ZSTD_rleCompressBlock() 1364 void* dst, size_t dstCapacity, 1373 * or an error code if `dstCapacity` is too small (<ZSTD_blockHeaderSize) 1375 size_t ZSTD_writeLastEmptyBlock(void* dst, size_t dstCapacity);
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | zstd.h | 247 * @dstCapacity: The size of the destination buffer. May be any size, but 256 size_t ZSTD_compressCCtx(ZSTD_CCtx *ctx, void *dst, size_t dstCapacity, 289 * @dstCapacity: The size of the destination buffer. Must be at least as large 299 size_t ZSTD_decompressDCtx(ZSTD_DCtx *ctx, void *dst, size_t dstCapacity, 311 * @dstCapacity: The size of the destination buffer. May be any size, but 325 size_t ZSTD_compress_usingDict(ZSTD_CCtx *ctx, void *dst, size_t dstCapacity, 333 * @dstCapacity: The size of the destination buffer. Must be at least as large 346 size_t ZSTD_decompress_usingDict(ZSTD_DCtx *ctx, void *dst, size_t dstCapacity, 393 * @dstCapacity: The size of the destination buffer. May be any size, but 406 size_t ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | zstd_lib.h | 110 * Hint : compression runs faster if `dstCapacity` >= `ZSTD_compressBound(srcSize)`. 111 * @return : compressed size written into `dst` (<= `dstCapacity), 113 ZSTDLIB_API size_t ZSTD_compress( void* dst, size_t dstCapacity, 119 * `dstCapacity` is an upper bound of originalSize to regenerate. 121 * @return : the number of bytes decompressed into `dst` (<= `dstCapacity`), 123 ZSTDLIB_API size_t ZSTD_decompress( void* dst, size_t dstCapacity, 206 void* dst, size_t dstCapacity, 226 void* dst, size_t dstCapacity, 509 * Hint : compression runs faster if `dstCapacity` >= `ZSTD_compressBound(srcSize)`. 510 * @return : compressed size written into `dst` (<= `dstCapacity), [all...] |
/kernel/linux/linux-6.6/lib/zstd/common/ |
H A D | fse_decompress.c | 308 size_t FSE_decompress_wksp(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, unsigned maxLog, void* workSpace, size_t wkspSize) in FSE_decompress_wksp() argument 310 return FSE_decompress_wksp_bmi2(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, /* bmi2 */ 0); in FSE_decompress_wksp() 320 void* dst, size_t dstCapacity, in FSE_decompress_wksp_body() 356 if (fastMode) return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, wksp->dtable, 1); in FSE_decompress_wksp_body() 357 return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, wksp->dtable, 0); in FSE_decompress_wksp_body() 362 static size_t FSE_decompress_wksp_body_default(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, unsigned maxLog, void* workSpace, size_t wkspSize) in FSE_decompress_wksp_body_default() argument 364 return FSE_decompress_wksp_body(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, 0); in FSE_decompress_wksp_body_default() 368 BMI2_TARGET_ATTRIBUTE static size_t FSE_decompress_wksp_body_bmi2(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, unsigned maxLog, void* workSpace, size_t wkspSize) in FSE_decompress_wksp_body_bmi2() argument 370 return FSE_decompress_wksp_body(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, 1); in FSE_decompress_wksp_body_bmi2() 374 size_t FSE_decompress_wksp_bmi2(void* dst, size_t dstCapacity, cons argument 319 FSE_decompress_wksp_body( void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, unsigned maxLog, void* workSpace, size_t wkspSize, int bmi2) FSE_decompress_wksp_body() argument [all...] |
H A D | fse.h | 58 'dst' buffer must be already allocated. Compression runs faster is dstCapacity >= FSE_compressBound(srcSize). 59 @return : size of compressed data (<= dstCapacity). 64 FSE_PUBLIC_API size_t FSE_compress(void* dst, size_t dstCapacity, 69 into already allocated destination buffer 'dst', of size 'dstCapacity'. 77 FSE_PUBLIC_API size_t FSE_decompress(void* dst, size_t dstCapacity, 174 @return : size of compressed data (<= `dstCapacity`), 177 FSE_PUBLIC_API size_t FSE_compress_usingCTable (void* dst, size_t dstCapacity, const void* src, size_t srcSize, const FSE_CTable* ct); 217 The function returns the size of compressed data (without header), necessarily <= `dstCapacity`. 255 @return : size of regenerated data (necessarily <= `dstCapacity`), 257 FSE_PUBLIC_API size_t FSE_decompress_usingDTable(void* dst, size_t dstCapacity, cons [all...] |
H A D | bitstream.h | 56 MEM_STATIC size_t BIT_initCStream(BIT_CStream_t* bitC, void* dstBuffer, size_t dstCapacity); 63 * `dstCapacity` must be >= sizeof(bitD->bitContainer), otherwise @return will be an error code. 166 * `dstCapacity` must be > sizeof(size_t) 170 void* startPtr, size_t dstCapacity) in BIT_initCStream() 176 bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->bitContainer); in BIT_initCStream() 177 if (dstCapacity <= sizeof(bitC->bitContainer)) return ERROR(dstSize_tooSmall); in BIT_initCStream() 169 BIT_initCStream(BIT_CStream_t* bitC, void* startPtr, size_t dstCapacity) BIT_initCStream() argument
|
H A D | huf.h | 45 * Compression runs faster if `dstCapacity` >= HUF_compressBound(srcSize). 47 * @return : size of compressed data (<= `dstCapacity`). 51 HUF_PUBLIC_API size_t HUF_compress(void* dst, size_t dstCapacity, 83 HUF_PUBLIC_API size_t HUF_compress2 (void* dst, size_t dstCapacity, 92 HUF_PUBLIC_API size_t HUF_compress4X_wksp (void* dst, size_t dstCapacity,
|
H A D | zstd_internal.h | 247 MEM_STATIC size_t ZSTD_limitCopy(void* dst, size_t dstCapacity, const void* src, size_t srcSize) in ZSTD_limitCopy() argument 249 size_t const length = MIN(dstCapacity, srcSize); in ZSTD_limitCopy()
|
/kernel/linux/linux-6.6/lib/zstd/decompress/ |
H A D | zstd_decompress.c | 561 ZSTDLIB_API size_t ZSTD_readSkippableFrame(void* dst, size_t dstCapacity, unsigned* magicVariant, in ZSTD_readSkippableFrame() argument 571 RETURN_ERROR_IF(skippableContentSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_readSkippableFrame() 792 static size_t ZSTD_copyRawBlock(void* dst, size_t dstCapacity, in ZSTD_copyRawBlock() argument 796 RETURN_ERROR_IF(srcSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_copyRawBlock() 805 static size_t ZSTD_setRleBlock(void* dst, size_t dstCapacity, in ZSTD_setRleBlock() argument 809 RETURN_ERROR_IF(regenSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_setRleBlock() 832 void* dst, size_t dstCapacity, in ZSTD_decompressFrame() 838 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame() 939 void* dst, size_t dstCapacity, in ZSTD_decompressMultiFrame() 831 ZSTD_decompressFrame(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void** srcPtr, size_t *srcSizePtr) ZSTD_decompressFrame() argument 938 ZSTD_decompressMultiFrame(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const void* dict, size_t dictSize, const ZSTD_DDict* ddict) ZSTD_decompressMultiFrame() argument 1008 ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const void* dict, size_t dictSize) ZSTD_decompress_usingDict() argument 1034 ZSTD_decompressDCtx(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_decompressDCtx() argument 1040 ZSTD_decompress(void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_decompress() argument 1112 ZSTD_decompressContinue(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_decompressContinue() argument 1487 ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const ZSTD_DDict* ddict) ZSTD_decompress_usingDDict() argument 2138 ZSTD_decompressStream_simpleArgs( ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, size_t* dstPos, const void* src, size_t srcSize, size_t* srcPos) ZSTD_decompressStream_simpleArgs() argument [all...] |
H A D | zstd_decompress_block.h | 49 void* dst, size_t dstCapacity,
|
H A D | zstd_decompress_block.c | 73 static void ZSTD_allocateLiteralsBuffer(ZSTD_DCtx* dctx, void* const dst, const size_t dstCapacity, const size_t litSize, in ZSTD_allocateLiteralsBuffer() argument 76 if (streaming == not_streaming && dstCapacity > ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH + litSize + WILDCOPY_OVERLENGTH) in ZSTD_allocateLiteralsBuffer() 110 void* dst, size_t dstCapacity, const streaming_operation streaming); 121 void* dst, size_t dstCapacity, const streaming_operation streaming) in ZSTD_decodeLiteralsBlock() 143 size_t expectedWriteSize = MIN(ZSTD_BLOCKSIZE_MAX, dstCapacity); in ZSTD_decodeLiteralsBlock() 170 ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 0); in ZSTD_decodeLiteralsBlock() 227 size_t expectedWriteSize = MIN(ZSTD_BLOCKSIZE_MAX, dstCapacity); in ZSTD_decodeLiteralsBlock() 246 ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 1); in ZSTD_decodeLiteralsBlock() 273 size_t expectedWriteSize = MIN(ZSTD_BLOCKSIZE_MAX, dstCapacity); in ZSTD_decodeLiteralsBlock() 293 ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSiz in ZSTD_decodeLiteralsBlock() 119 ZSTD_decodeLiteralsBlock(ZSTD_DCtx* dctx, const void* src, size_t srcSize, void* dst, size_t dstCapacity, const streaming_operation streaming) ZSTD_decodeLiteralsBlock() argument 1978 ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const int frame, const streaming_operation streaming) global() argument 2063 ZSTD_decompressBlock(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) global() argument [all...] |
/kernel/linux/linux-5.10/lib/zstd/ |
H A D | compress.c | 434 size_t ZSTD_noCompressBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize) in ZSTD_noCompressBlock() argument 436 if (srcSize + ZSTD_blockHeaderSize > dstCapacity) in ZSTD_noCompressBlock() 443 static size_t ZSTD_noCompressLiterals(void *dst, size_t dstCapacity, const void *src, size_t srcSize) in ZSTD_noCompressLiterals() argument 448 if (srcSize + flSize > dstCapacity) in ZSTD_noCompressLiterals() 462 static size_t ZSTD_compressRleLiteralsBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize) in ZSTD_compressRleLiteralsBlock() argument 467 (void)dstCapacity; /* dstCapacity already guaranteed to be >=4, hence large enough */ in ZSTD_compressRleLiteralsBlock() 482 static size_t ZSTD_compressLiterals(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, const void *src, size_t srcSize) in ZSTD_compressLiterals() argument 496 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals() 499 if (dstCapacity < lhSiz in ZSTD_compressLiterals() 586 ZSTD_compressSequences_internal(ZSTD_CCtx *zc, void *dst, size_t dstCapacity) ZSTD_compressSequences_internal() argument 832 ZSTD_compressSequences(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, size_t srcSize) ZSTD_compressSequences() argument 2333 ZSTD_compressBlock_internal(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_compressBlock_internal() argument 2355 ZSTD_compress_generic(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 lastFrameChunk) ZSTD_compress_generic() argument 2431 ZSTD_writeFrameHeader(void *dst, size_t dstCapacity, ZSTD_parameters params, U64 pledgedSrcSize, U32 dictID) ZSTD_writeFrameHeader() argument 2490 ZSTD_compressContinue_internal(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 frame, U32 lastFrameChunk) ZSTD_compressContinue_internal() argument 2539 ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_compressContinue() argument 2546 ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_compressBlock() argument 2765 ZSTD_writeEpilogue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity) ZSTD_writeEpilogue() argument 2806 ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_compressEnd() argument 2818 ZSTD_compress_internal(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, ZSTD_parameters params) ZSTD_compress_internal() argument 2825 ZSTD_compress_usingDict(ZSTD_CCtx *ctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, ZSTD_parameters params) ZSTD_compress_usingDict() argument 2831 ZSTD_compressCCtx(ZSTD_CCtx *ctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, ZSTD_parameters params) ZSTD_compressCCtx() argument 2930 ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_CDict *cdict) ZSTD_compress_usingCDict() argument 3122 ZSTD_limitCopy(void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_limitCopy() argument [all...] |
H A D | decompress.c | 412 static size_t ZSTD_copyRawBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize) in ZSTD_copyRawBlock() argument 414 if (srcSize > dstCapacity) in ZSTD_copyRawBlock() 420 static size_t ZSTD_setRleBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize, size_t regenSize) in ZSTD_setRleBlock() argument 424 if (regenSize > dstCapacity) in ZSTD_setRleBlock() 1445 static size_t ZSTD_decompressBlock_internal(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) in ZSTD_decompressBlock_internal() argument 1465 return ZSTD_decompressSequencesLong(dctx, dst, dstCapacity, ip, srcSize); in ZSTD_decompressBlock_internal() 1466 return ZSTD_decompressSequences(dctx, dst, dstCapacity, ip, srcSize); in ZSTD_decompressBlock_internal() 1479 size_t ZSTD_decompressBlock(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) in ZSTD_decompressBlock() argument 1483 dSize = ZSTD_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize); in ZSTD_decompressBlock() 1497 size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYT argument 1566 ZSTD_decompressFrame(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void **srcPtr, size_t *srcSizePtr) ZSTD_decompressFrame() argument 1643 ZSTD_decompressMultiFrame(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, const ZSTD_DDict *ddict) ZSTD_decompressMultiFrame() argument 1707 ZSTD_decompress_usingDict(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize) ZSTD_decompress_usingDict() argument 1712 ZSTD_decompressDCtx(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_decompressDCtx() argument 1743 ZSTD_decompressContinue(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_decompressContinue() argument 2147 ZSTD_decompress_usingDDict(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_DDict *ddict) ZSTD_decompress_usingDDict() argument 2291 ZSTD_limitCopy(void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_limitCopy() argument [all...] |
H A D | bitstream.h | 78 ZSTD_STATIC size_t BIT_initCStream(BIT_CStream_t *bitC, void *dstBuffer, size_t dstCapacity); 85 * `dstCapacity` must be >= sizeof(bitD->bitContainer), otherwise @return will be an error code. 159 * `dstCapacity` must be > sizeof(void*) 162 ZSTD_STATIC size_t BIT_initCStream(BIT_CStream_t *bitC, void *startPtr, size_t dstCapacity) in BIT_initCStream() argument 168 bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->ptr); in BIT_initCStream() 169 if (dstCapacity <= sizeof(bitC->ptr)) in BIT_initCStream()
|
H A D | fse.h | 126 @return : size of compressed data (<= `dstCapacity`), 129 FSE_PUBLIC_API size_t FSE_compress_usingCTable(void *dst, size_t dstCapacity, const void *src, size_t srcSize, const FSE_CTable *ct); 169 The function returns the size of compressed data (without header), necessarily <= `dstCapacity`. 195 @return : size of regenerated data (necessarily <= `dstCapacity`), 197 FSE_PUBLIC_API size_t FSE_decompress_usingDTable(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, const FSE_DTable *dt); 223 FSE_decompress_usingDTable() result will tell how many bytes were regenerated (<=`dstCapacity`). 284 size_t FSE_decompress_wksp(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspaceSize);
|
H A D | fse_decompress.c | 287 size_t FSE_decompress_wksp(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspaceSize) in FSE_decompress_wksp() argument 324 return FSE_decompress_usingDTable(dst, dstCapacity, ip, cSrcSize, dt); /* always return, even if it is an error code */ in FSE_decompress_wksp()
|
/kernel/linux/linux-5.10/lib/lz4/ |
H A D | lz4_decompress.c | 66 * this value is `dstCapacity` in LZ4_decompress_generic() 470 int compressedSize, int targetOutputSize, int dstCapacity) in LZ4_decompress_safe_partial() 472 dstCapacity = min(targetOutputSize, dstCapacity); in LZ4_decompress_safe_partial() 473 return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity, in LZ4_decompress_safe_partial() 469 LZ4_decompress_safe_partial(const char *src, char *dst, int compressedSize, int targetOutputSize, int dstCapacity) LZ4_decompress_safe_partial() argument
|
/kernel/linux/linux-6.6/lib/lz4/ |
H A D | lz4_decompress.c | 66 * this value is `dstCapacity` in LZ4_decompress_generic() 470 int compressedSize, int targetOutputSize, int dstCapacity) in LZ4_decompress_safe_partial() 472 dstCapacity = min(targetOutputSize, dstCapacity); in LZ4_decompress_safe_partial() 473 return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity, in LZ4_decompress_safe_partial() 469 LZ4_decompress_safe_partial(const char *src, char *dst, int compressedSize, int targetOutputSize, int dstCapacity) LZ4_decompress_safe_partial() argument
|