Home
last modified time | relevance | path

Searched refs:dstCapacity (Results 1 – 19 of 19) sorted by relevance

/linux-6.15/lib/zstd/compress/
H A Dzstd_compress_literals.c40 size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize) in ZSTD_noCompressLiterals() argument
45 DEBUGLOG(5, "ZSTD_noCompressLiterals: srcSize=%zu, dstCapacity=%zu", srcSize, dstCapacity); in ZSTD_noCompressLiterals()
47 RETURN_ERROR_IF(srcSize + flSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_noCompressLiterals()
87 assert(dstCapacity >= 4); (void)dstCapacity; in ZSTD_compressRleLiteralsBlock()
131 void* dst, size_t dstCapacity, in ZSTD_compressLiterals() argument
148 disableLiteralCompression, (U32)srcSize, dstCapacity); in ZSTD_compressLiterals()
156 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()
160 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()
174 cLitSize = huf_compress(ostart+lhSize, dstCapacity-lhSize, in ZSTD_compressLiterals()
191 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()
[all …]
H A Dzstd_compress_sequences.c244 ZSTD_buildCTable(void* dst, size_t dstCapacity, in ZSTD_buildCTable() argument
253 const BYTE* const oend = op + dstCapacity; in ZSTD_buildCTable()
293 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_body() argument
309 (unsigned)dstCapacity); in ZSTD_encodeSequences_body()
387 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_default() argument
393 return ZSTD_encodeSequences_body(dst, dstCapacity, in ZSTD_encodeSequences_default()
405 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_bmi2() argument
411 return ZSTD_encodeSequences_body(dst, dstCapacity, in ZSTD_encodeSequences_bmi2()
421 void* dst, size_t dstCapacity, in ZSTD_encodeSequences() argument
430 return ZSTD_encodeSequences_bmi2(dst, dstCapacity, in ZSTD_encodeSequences()
[all …]
H A Dzstd_compress_literals.h18 size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize);
24 size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSiz…
31 size_t ZSTD_compressLiterals (void* dst, size_t dstCapacity,
H A Dzstd_compress.c2849 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSeqStore_internal()
2970 dst, dstCapacity, in ZSTD_entropyCompressSeqStore()
4255 dstCapacity -= cSizeChunk; in ZSTD_compressBlock_splitBlock_internal()
4332 dst, dstCapacity, in ZSTD_compressBlock_internal()
4598 dstCapacity -= cSize; in ZSTD_compress_frameChunk()
4724 dstCapacity -= fhSize; in ZSTD_compressContinue_internal()
5267 dstCapacity -= fhSize; in ZSTD_writeEpilogue()
6346 output.size = dstCapacity; in ZSTD_compressStream2_simpleArgs()
6887 dstCapacity -= cBlocksSize; in ZSTD_compressSequences()
7359 dstCapacity -= cBlockSize; in ZSTD_compressSequencesAndLiterals_internal()
[all …]
H A Dzstd_compress_sequences.h34 ZSTD_buildCTable(void* dst, size_t dstCapacity,
43 void* dst, size_t dstCapacity,
H A Dzstd_compress_superblock.c169 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_sequences() argument
174 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_sequences()
270 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock() argument
277 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock()
485 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_multi() argument
501 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_multi()
667 void* dst, size_t dstCapacity, in ZSTD_compressSuperBlock() argument
685 dst, dstCapacity, in ZSTD_compressSuperBlock()
H A Dzstd_compress_superblock.h29 void* dst, size_t dstCapacity,
H A Dzstd_compress_internal.h642 ZSTD_noCompressBlock(void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 lastBlock) in ZSTD_noCompressBlock() argument
645 DEBUGLOG(5, "ZSTD_noCompressBlock (srcSize=%zu, dstCapacity=%zu)", srcSize, dstCapacity); in ZSTD_noCompressBlock()
646 RETURN_ERROR_IF(srcSize + ZSTD_blockHeaderSize > dstCapacity, in ZSTD_noCompressBlock()
654 ZSTD_rleCompressBlock(void* dst, size_t dstCapacity, BYTE src, size_t srcSize, U32 lastBlock) in ZSTD_rleCompressBlock() argument
658 RETURN_ERROR_IF(dstCapacity < 4, dstSize_tooSmall, ""); in ZSTD_rleCompressBlock()
1570 void* dst, size_t dstCapacity,
1581 size_t ZSTD_writeLastEmptyBlock(void* dst, size_t dstCapacity);
1618 void* dst, size_t dstCapacity,
1622 void* dst, size_t dstCapacity,
1625 size_t ZSTD_compressBlock_deprecated(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* sr…
H A Dhuf_compress.c855 void* startPtr, size_t dstCapacity) in HUF_initCStream() argument
860 bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->bitContainer[0]); in HUF_initCStream()
861 if (dstCapacity <= sizeof(bitC->bitContainer[0])) return ERROR(dstSize_tooSmall); in HUF_initCStream()
/linux-6.15/lib/zstd/common/
H A Dfse_decompress.c245 void* dst, size_t dstCapacity, in FSE_decompress_wksp_body() argument
287 …if (fastMode) return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, dtable, 1); in FSE_decompress_wksp_body()
288 return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, dtable, 0); in FSE_decompress_wksp_body()
293 static size_t FSE_decompress_wksp_body_default(void* dst, size_t dstCapacity, const void* cSrc, siz… in FSE_decompress_wksp_body_default() argument
295 … return FSE_decompress_wksp_body(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, 0); in FSE_decompress_wksp_body_default()
299 BMI2_TARGET_ATTRIBUTE static size_t FSE_decompress_wksp_body_bmi2(void* dst, size_t dstCapacity, co… in FSE_decompress_wksp_body_bmi2() argument
301 … return FSE_decompress_wksp_body(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, 1); in FSE_decompress_wksp_body_bmi2()
305 size_t FSE_decompress_wksp_bmi2(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, u… in FSE_decompress_wksp_bmi2() argument
309 …return FSE_decompress_wksp_body_bmi2(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize… in FSE_decompress_wksp_bmi2()
313 …return FSE_decompress_wksp_body_default(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspS… in FSE_decompress_wksp_bmi2()
H A Dbitstream.h58 MEM_STATIC size_t BIT_initCStream(BIT_CStream_t* bitC, void* dstBuffer, size_t dstCapacity);
145 void* startPtr, size_t dstCapacity) in BIT_initCStream() argument
151 bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->bitContainer); in BIT_initCStream()
152 if (dstCapacity <= sizeof(bitC->bitContainer)) return ERROR(dstSize_tooSmall); in BIT_initCStream()
H A Dzstd_internal.h242 MEM_STATIC size_t ZSTD_limitCopy(void* dst, size_t dstCapacity, const void* src, size_t srcSize) in ZSTD_limitCopy() argument
244 size_t const length = MIN(dstCapacity, srcSize); in ZSTD_limitCopy()
H A Dfse.h131 FSE_PUBLIC_API size_t FSE_compress_usingCTable (void* dst, size_t dstCapacity, const void* src, siz…
275 size_t FSE_decompress_wksp_bmi2(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, u…
/linux-6.15/include/linux/
H A Dzstd_lib.h139 ZSTDLIB_API size_t ZSTD_compress( void* dst, size_t dstCapacity,
152 ZSTDLIB_API size_t ZSTD_decompress( void* dst, size_t dstCapacity,
272 void* dst, size_t dstCapacity,
292 void* dst, size_t dstCapacity,
603 void* dst, size_t dstCapacity,
944 void* dst, size_t dstCapacity,
956 void* dst, size_t dstCapacity,
992 void* dst, size_t dstCapacity,
1648 void* dst, size_t dstCapacity,
1673 void* dst, size_t dstCapacity,
[all …]
H A Dlz4.h346 int LZ4_compress_HC(const char *src, char *dst, int srcSize, int dstCapacity,
/linux-6.15/lib/zstd/decompress/
H A Dzstd_decompress_block.h50 void* dst, size_t dstCapacity,
70 void* dst, size_t dstCapacity,
H A Dzstd_decompress.c592 size_t ZSTD_readSkippableFrame(void* dst, size_t dstCapacity, in ZSTD_readSkippableFrame() argument
870 static size_t ZSTD_copyRawBlock(void* dst, size_t dstCapacity, in ZSTD_copyRawBlock() argument
883 static size_t ZSTD_setRleBlock(void* dst, size_t dstCapacity, in ZSTD_setRleBlock() argument
916 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame()
1068 ZSTD_checkContinuity(dctx, dst, dstCapacity); in ZSTD_decompressMultiFrame()
1084 assert(res <= dstCapacity); in ZSTD_decompressMultiFrame()
1087 dstCapacity -= res; in ZSTD_decompressMultiFrame()
1098 void* dst, size_t dstCapacity, in ZSTD_decompress_usingDict() argument
1206 ZSTD_checkContinuity(dctx, dst, dstCapacity); in ZSTD_decompressContinue()
1580 void* dst, size_t dstCapacity, in ZSTD_decompress_usingDDict() argument
[all …]
H A Dzstd_decompress_block.c160 size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); in ZSTD_decodeLiteralsBlock()
254 size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); in ZSTD_decodeLiteralsBlock()
302 size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); in ZSTD_decodeLiteralsBlock()
346 void* dst, size_t dstCapacity);
349 void* dst, size_t dstCapacity) in ZSTD_decodeLiteralsBlock_wrapper() argument
2068 void* dst, size_t dstCapacity, argument
2097 size_t const blockSizeMax = MIN(dstCapacity, ZSTD_blockSizeMax(dctx));
2191 void* dst, size_t dstCapacity, argument
2196 ZSTD_checkContinuity(dctx, dst, dstCapacity);
2206 void* dst, size_t dstCapacity, argument
[all …]
/linux-6.15/lib/lz4/
H A Dlz4_decompress.c469 int compressedSize, int targetOutputSize, int dstCapacity) in LZ4_decompress_safe_partial() argument
471 dstCapacity = min(targetOutputSize, dstCapacity); in LZ4_decompress_safe_partial()
472 return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity, in LZ4_decompress_safe_partial()