Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/compress/
Dzstd_compress_literals.c16 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 srcSiz… 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() argument
92 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()
97 if (srcSize <= minLitSize) return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()
100 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); in ZSTD_compressLiterals()
106 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
110 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
[all …]
Dzstd_compress_sequences.c241 ZSTD_buildCTable(void* dst, size_t dstCapacity, in ZSTD_buildCTable() argument
250 const BYTE* const oend = op + dstCapacity; in ZSTD_buildCTable()
251 DEBUGLOG(6, "ZSTD_buildCTable (dstCapacity=%u)", (unsigned)dstCapacity); in ZSTD_buildCTable()
256 RETURN_ERROR_IF(dstCapacity==0, dstSize_tooSmall, "not enough space"); in ZSTD_buildCTable()
289 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_body() argument
301 ERR_isError(BIT_initCStream(&blockStream, dst, dstCapacity)), in ZSTD_encodeSequences_body()
305 (unsigned)dstCapacity); in ZSTD_encodeSequences_body()
383 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_default() argument
389 return ZSTD_encodeSequences_body(dst, dstCapacity, in ZSTD_encodeSequences_default()
401 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_bmi2() argument
[all …]
Dzstd_compress_literals.h17 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 srcSiz…
24 void* dst, size_t dstCapacity,
Dzstd_compress.c2103 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSequences_internal() argument
2119 BYTE* const oend = ostart + dstCapacity; in ZSTD_entropyCompressSequences_internal()
2139 op, dstCapacity, in ZSTD_entropyCompressSequences_internal()
2144 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSequences_internal()
2294 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSequences() argument
2301 dst, dstCapacity, in ZSTD_entropyCompressSequences()
2307 if ((cSize == ERROR(dstSize_tooSmall)) & (srcSize <= dstCapacity)) in ZSTD_entropyCompressSequences()
2535 const size_t dstCapacity = ZSTD_compressBound(srcSize); in ZSTD_generateSequences() local
2536 void* dst = ZSTD_customMalloc(dstCapacity, ZSTD_defaultCMem); in ZSTD_generateSequences()
2547 ZSTD_compress2(zc, dst, dstCapacity, src, srcSize); in ZSTD_generateSequences()
[all …]
Dzstd_compress_sequences.h32 ZSTD_buildCTable(void* dst, size_t dstCapacity,
41 void* dst, size_t dstCapacity,
Dzstd_compress_superblock.h28 void* dst, size_t dstCapacity,
Dzstd_compress_superblock.c444 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_sequences() argument
449 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_sequences()
545 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock() argument
552 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock()
709 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_multi() argument
723 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_multi()
831 void* dst, size_t dstCapacity, in ZSTD_compressSuperBlock() argument
848 dst, dstCapacity, in ZSTD_compressSuperBlock()
Dzstd_compress_internal.h435 MEM_STATIC size_t ZSTD_noCompressBlock (void* dst, size_t dstCapacity, const void* src, size_t srcS… in ZSTD_noCompressBlock() argument
438 RETURN_ERROR_IF(srcSize + ZSTD_blockHeaderSize > dstCapacity, in ZSTD_noCompressBlock()
445 MEM_STATIC size_t ZSTD_rleCompressBlock (void* dst, size_t dstCapacity, BYTE src, size_t srcSize, U… in ZSTD_rleCompressBlock() argument
449 RETURN_ERROR_IF(dstCapacity < 4, dstSize_tooSmall, ""); in ZSTD_rleCompressBlock()
1153 void* dst, size_t dstCapacity,
1164 size_t ZSTD_writeLastEmptyBlock(void* dst, size_t dstCapacity);
/linux-6.1.9/lib/zstd/common/
Dfse_decompress.c308 size_t FSE_decompress_wksp(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, unsign… in FSE_decompress_wksp() argument
310 …return FSE_decompress_wksp_bmi2(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, /* … in FSE_decompress_wksp()
320 void* dst, size_t dstCapacity, in FSE_decompress_wksp_body() argument
356 …if (fastMode) return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, wksp->dtab… 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, siz… 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 TARGET_ATTRIBUTE("bmi2") static size_t FSE_decompress_wksp_body_bmi2(void* dst, size_t dstCapacity,… 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, const void* cSrc, size_t cSrcSize, u… in FSE_decompress_wksp_bmi2() argument
[all …]
Dfse.h64 FSE_PUBLIC_API size_t FSE_compress(void* dst, size_t dstCapacity,
77 FSE_PUBLIC_API size_t FSE_decompress(void* dst, size_t dstCapacity,
177 FSE_PUBLIC_API size_t FSE_compress_usingCTable (void* dst, size_t dstCapacity, const void* src, siz…
257 FSE_PUBLIC_API size_t FSE_decompress_usingDTable(void* dst, size_t dstCapacity, const void* cSrc, s…
354 size_t FSE_decompress_wksp(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, unsign…
357 size_t FSE_decompress_wksp_bmi2(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, u…
Dbitstream.h56 MEM_STATIC size_t BIT_initCStream(BIT_CStream_t* bitC, void* dstBuffer, size_t dstCapacity);
170 void* startPtr, size_t dstCapacity) in BIT_initCStream() argument
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()
Dhuf.h51 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,
Dzstd_internal.h304 MEM_STATIC size_t ZSTD_limitCopy(void* dst, size_t dstCapacity, const void* src, size_t srcSize) in ZSTD_limitCopy() argument
306 size_t const length = MIN(dstCapacity, srcSize); in ZSTD_limitCopy()
/linux-6.1.9/include/linux/
Dzstd_lib.h106 ZSTDLIB_API size_t ZSTD_compress( void* dst, size_t dstCapacity,
116 ZSTDLIB_API size_t ZSTD_decompress( void* dst, size_t dstCapacity,
198 void* dst, size_t dstCapacity,
218 void* dst, size_t dstCapacity,
503 void* dst, size_t dstCapacity,
804 void* dst, size_t dstCapacity,
816 void* dst, size_t dstCapacity,
852 void* dst, size_t dstCapacity,
873 void* dst, size_t dstCapacity,
1390 ZSTDLIB_API size_t ZSTD_writeSkippableFrame(void* dst, size_t dstCapacity,
[all …]
Dlz4.h346 int LZ4_compress_HC(const char *src, char *dst, int srcSize, int dstCapacity,
/linux-6.1.9/lib/zstd/decompress/
Dzstd_decompress.c746 static size_t ZSTD_copyRawBlock(void* dst, size_t dstCapacity, in ZSTD_copyRawBlock() argument
750 RETURN_ERROR_IF(srcSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_copyRawBlock()
759 static size_t ZSTD_setRleBlock(void* dst, size_t dstCapacity, in ZSTD_setRleBlock() argument
763 RETURN_ERROR_IF(regenSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_setRleBlock()
786 void* dst, size_t dstCapacity, in ZSTD_decompressFrame() argument
792 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame()
874 void* dst, size_t dstCapacity, in ZSTD_decompressMultiFrame() argument
914 ZSTD_checkContinuity(dctx, dst, dstCapacity); in ZSTD_decompressMultiFrame()
916 { const size_t res = ZSTD_decompressFrame(dctx, dst, dstCapacity, in ZSTD_decompressMultiFrame()
930 assert(res <= dstCapacity); in ZSTD_decompressMultiFrame()
[all …]
Dzstd_decompress_block.h43 void* dst, size_t dstCapacity,
Dzstd_decompress_block.c1450 void* dst, size_t dstCapacity, in ZSTD_decompressBlock_internal() argument
1509 …return ZSTD_decompressSequencesLong(dctx, dst, dstCapacity, ip, srcSize, nbSeq, isLongOffset, fram… in ZSTD_decompressBlock_internal()
1514 … return ZSTD_decompressSequences(dctx, dst, dstCapacity, ip, srcSize, nbSeq, isLongOffset, frame); in ZSTD_decompressBlock_internal()
1532 void* dst, size_t dstCapacity, in ZSTD_decompressBlock() argument
1536 ZSTD_checkContinuity(dctx, dst, dstCapacity); in ZSTD_decompressBlock()
1537 dSize = ZSTD_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize, /* frame */ 0); in ZSTD_decompressBlock()
/linux-6.1.9/lib/lz4/
Dlz4_decompress.c470 int compressedSize, int targetOutputSize, int dstCapacity) in LZ4_decompress_safe_partial() argument
472 dstCapacity = min(targetOutputSize, dstCapacity); in LZ4_decompress_safe_partial()
473 return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity, in LZ4_decompress_safe_partial()