Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_literals.c39 size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize) in ZSTD_noCompressLiterals() argument
44 DEBUGLOG(5, "ZSTD_noCompressLiterals: srcSize=%zu, dstCapacity=%zu", srcSize, dstCapacity); in ZSTD_noCompressLiterals()
46 RETURN_ERROR_IF(srcSize + flSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_noCompressLiterals()
81 size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSiz… in ZSTD_compressRleLiteralsBlock() argument
86 assert(dstCapacity >= 4); (void)dstCapacity; in ZSTD_compressRleLiteralsBlock()
130 void* dst, size_t dstCapacity, in ZSTD_compressLiterals() argument
147 disableLiteralCompression, (U32)srcSize, dstCapacity); in ZSTD_compressLiterals()
155 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()
159 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()
161 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); in ZSTD_compressLiterals()
[all …]
H A Dzstd_compress_sequences.c243 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() argument
304 ERR_isError(BIT_initCStream(&blockStream, dst, dstCapacity)), in ZSTD_encodeSequences_body()
308 (unsigned)dstCapacity); in ZSTD_encodeSequences_body()
386 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_default() argument
392 return ZSTD_encodeSequences_body(dst, dstCapacity, in ZSTD_encodeSequences_default()
404 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_bmi2() argument
[all …]
H A Dzstd_compress_literals.h17 size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize);
23 size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSiz…
30 size_t ZSTD_compressLiterals (void* dst, size_t dstCapacity,
H A Dzstd_compress.c2889 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSeqStore_internal() argument
2909 BYTE* const oend = ostart + dstCapacity; in ZSTD_entropyCompressSeqStore_internal()
2917 …UGLOG(5, "ZSTD_entropyCompressSeqStore_internal (nbSeq=%zu, dstCapacity=%zu)", nbSeq, dstCapacity); in ZSTD_entropyCompressSeqStore_internal()
2927 op, dstCapacity, in ZSTD_entropyCompressSeqStore_internal()
2935 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSeqStore_internal()
3007 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSeqStore_wExtLitBuffer() argument
3018 dst, dstCapacity, in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3026 if ((cSize == ERROR(dstSize_tooSmall)) & (blockSize <= dstCapacity)) { in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3027 …tCapacity (%zu) for ZSTD_entropyCompressSeqStore_internal()=> do not compress block", dstCapacity); in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3050 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSeqStore() argument
[all …]
H A Dzstd_compress_sequences.h33 ZSTD_buildCTable(void* dst, size_t dstCapacity,
42 void* dst, size_t dstCapacity,
H A Dzstd_compress_superblock.c168 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_sequences() argument
173 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_sequences()
269 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock() argument
276 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock()
484 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_multi() argument
500 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_multi()
666 void* dst, size_t dstCapacity, in ZSTD_compressSuperBlock() argument
684 dst, dstCapacity, in ZSTD_compressSuperBlock()
/freebsd/sys/contrib/openzfs/module/zstd/lib/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()
82 size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSiz… in ZSTD_compressRleLiteralsBlock() argument
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()
162 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); 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()
254 DEBUGLOG(6, "ZSTD_buildCTable (dstCapacity=%u)", (unsigned)dstCapacity); in ZSTD_buildCTable()
259 RETURN_ERROR_IF(dstCapacity==0, dstSize_tooSmall, "not enough space"); in ZSTD_buildCTable()
293 void* dst, size_t dstCapacity, in ZSTD_encodeSequences_body() argument
305 ERR_isError(BIT_initCStream(&blockStream, dst, dstCapacity)), in ZSTD_encodeSequences_body()
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
[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.c2890 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSeqStore_internal() argument
2910 BYTE* const oend = ostart + dstCapacity; in ZSTD_entropyCompressSeqStore_internal()
2918 …UGLOG(5, "ZSTD_entropyCompressSeqStore_internal (nbSeq=%zu, dstCapacity=%zu)", nbSeq, dstCapacity); in ZSTD_entropyCompressSeqStore_internal()
2928 op, dstCapacity, in ZSTD_entropyCompressSeqStore_internal()
2936 assert(cSize <= dstCapacity); in ZSTD_entropyCompressSeqStore_internal()
3008 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSeqStore_wExtLitBuffer() argument
3019 dst, dstCapacity, in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3027 if ((cSize == ERROR(dstSize_tooSmall)) & (blockSize <= dstCapacity)) { in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3028 …tCapacity (%zu) for ZSTD_entropyCompressSeqStore_internal()=> do not compress block", dstCapacity); in ZSTD_entropyCompressSeqStore_wExtLitBuffer()
3051 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSeqStore() argument
[all …]
H A Dzstd_compress_sequences.h34 ZSTD_buildCTable(void* dst, size_t dstCapacity,
43 void* dst, size_t dstCapacity,
/freebsd/sys/contrib/zstd/lib/common/
H A Dfse_decompress.c244 void* dst, size_t dstCapacity, in FSE_decompress_wksp_body() argument
286 …if (fastMode) return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, dtable, 1); in FSE_decompress_wksp_body()
287 return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, dtable, 0); in FSE_decompress_wksp_body()
292 static size_t FSE_decompress_wksp_body_default(void* dst, size_t dstCapacity, const void* cSrc, siz… in FSE_decompress_wksp_body_default() argument
294 … return FSE_decompress_wksp_body(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, 0); in FSE_decompress_wksp_body_default()
298 BMI2_TARGET_ATTRIBUTE static size_t FSE_decompress_wksp_body_bmi2(void* dst, size_t dstCapacity, co… in FSE_decompress_wksp_body_bmi2() argument
300 … return FSE_decompress_wksp_body(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, 1); in FSE_decompress_wksp_body_bmi2()
304 size_t FSE_decompress_wksp_bmi2(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, u… in FSE_decompress_wksp_bmi2() argument
308 …return FSE_decompress_wksp_body_bmi2(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize… in FSE_decompress_wksp_bmi2()
312 …return FSE_decompress_wksp_body_default(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspS… in FSE_decompress_wksp_bmi2()
/freebsd/sys/contrib/openzfs/module/zstd/lib/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()
/freebsd/sys/contrib/openzfs/module/zstd/lib/
H A Dzstd.h161 ZSTDLIB_API size_t ZSTD_compress( void* dst, size_t dstCapacity,
174 ZSTDLIB_API size_t ZSTD_decompress( void* dst, size_t dstCapacity,
294 void* dst, size_t dstCapacity,
314 void* dst, size_t dstCapacity,
625 void* dst, size_t dstCapacity,
966 void* dst, size_t dstCapacity,
978 void* dst, size_t dstCapacity,
1014 void* dst, size_t dstCapacity,
1035 void* dst, size_t dstCapacity,
1682 void* dst, size_t dstCapacity,
[all …]
/freebsd/sys/contrib/zstd/lib/
H A Dzstd.h160 ZSTDLIB_API size_t ZSTD_compress( void* dst, size_t dstCapacity,
173 ZSTDLIB_API size_t ZSTD_decompress( void* dst, size_t dstCapacity,
293 void* dst, size_t dstCapacity,
313 void* dst, size_t dstCapacity,
624 void* dst, size_t dstCapacity,
965 void* dst, size_t dstCapacity,
977 void* dst, size_t dstCapacity,
1013 void* dst, size_t dstCapacity,
1034 void* dst, size_t dstCapacity,
1681 void* dst, size_t dstCapacity,
[all …]
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_legacy.h122 void* dst, size_t dstCapacity, in ZSTD_decompressLegacy() argument
130 assert(dstCapacity == 0); in ZSTD_decompressLegacy()
141 …(void)dst; (void)dstCapacity; (void)dict; (void)dictSize; /* unused when ZSTD_LEGACY_SUPPORT >= 8… in ZSTD_decompressLegacy()
146 return ZSTDv01_decompress(dst, dstCapacity, src, compressedSize); in ZSTD_decompressLegacy()
150 return ZSTDv02_decompress(dst, dstCapacity, src, compressedSize); in ZSTD_decompressLegacy()
154 return ZSTDv03_decompress(dst, dstCapacity, src, compressedSize); in ZSTD_decompressLegacy()
158 return ZSTDv04_decompress(dst, dstCapacity, src, compressedSize); in ZSTD_decompressLegacy()
165 … result = ZSTDv05_decompress_usingDict(zd, dst, dstCapacity, src, compressedSize, dict, dictSize); in ZSTD_decompressLegacy()
175 … result = ZSTDv06_decompress_usingDict(zd, dst, dstCapacity, src, compressedSize, dict, dictSize); in ZSTD_decompressLegacy()
185 … result = ZSTDv07_decompress_usingDict(zd, dst, dstCapacity, src, compressedSize, dict, dictSize); in ZSTD_decompressLegacy()
H A Dzstd_v06.h42 ZSTDLIBv06_API size_t ZSTDv06_decompress( void* dst, size_t dstCapacity,
78 ZSTDLIBv06_API size_t ZSTDv06_decompressDCtx(ZSTDv06_DCtx* ctx, void* dst, size_t dstCapacity, cons…
89 void* dst, size_t dstCapacity,
105 ZSTDLIBv06_API size_t ZSTDv06_decompressContinue(ZSTDv06_DCtx* dctx, void* dst, size_t dstCapacity,…
H A Dzstd_v05.h33 size_t ZSTDv05_decompress( void* dst, size_t dstCapacity,
67 size_t ZSTDv05_decompressDCtx(ZSTDv05_DCtx* ctx, void* dst, size_t dstCapacity, const void* src, si…
78 void* dst, size_t dstCapacity,
96 size_t ZSTDv05_decompressContinue(ZSTDv05_DCtx* dctx, void* dst, size_t dstCapacity, const void* sr…
H A Dzstd_v07.h49 ZSTDLIBv07_API size_t ZSTDv07_decompress( void* dst, size_t dstCapacity,
80 ZSTDLIBv07_API size_t ZSTDv07_decompressDCtx(ZSTDv07_DCtx* ctx, void* dst, size_t dstCapacity, cons…
91 void* dst, size_t dstCapacity,
110 void* dst, size_t dstCapacity,
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c615 size_t ZSTD_readSkippableFrame(void* dst, size_t dstCapacity, in ZSTD_readSkippableFrame() argument
628 RETURN_ERROR_IF(skippableContentSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_readSkippableFrame()
897 static size_t ZSTD_copyRawBlock(void* dst, size_t dstCapacity, in ZSTD_copyRawBlock() argument
901 RETURN_ERROR_IF(srcSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_copyRawBlock()
910 static size_t ZSTD_setRleBlock(void* dst, size_t dstCapacity, in ZSTD_setRleBlock() argument
914 RETURN_ERROR_IF(regenSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_setRleBlock()
955 void* dst, size_t dstCapacity, in ZSTD_decompressFrame() argument
961 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame()
1072 void* dst, size_t dstCapacity, in ZSTD_decompressMultiFrame() argument
1098 decodedSize = ZSTD_decompressLegacy(dst, dstCapacity, src, frameSize, dict, dictSize); in ZSTD_decompressMultiFrame()
[all …]
H A Dzstd_decompress_block.h50 void* dst, size_t dstCapacity,
70 void* dst, size_t dstCapacity,
H A Dzstd_decompress_block.c81 static void ZSTD_allocateLiteralsBuffer(ZSTD_DCtx* dctx, void* const dst, const size_t dstCapacity,… in ZSTD_allocateLiteralsBuffer() argument
88 …if (streaming == not_streaming && dstCapacity > blockSizeMax + WILDCOPY_OVERLENGTH + litSize + WIL… in ZSTD_allocateLiteralsBuffer()
137 void* dst, size_t dstCapacity, const streaming_operation streaming) in ZSTD_decodeLiteralsBlock() argument
160 size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); in ZSTD_decodeLiteralsBlock()
194 … ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 0); in ZSTD_decodeLiteralsBlock()
254 size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); in ZSTD_decodeLiteralsBlock()
275 … ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 1); in ZSTD_decodeLiteralsBlock()
302 size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); in ZSTD_decodeLiteralsBlock()
323 … ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 1); in ZSTD_decodeLiteralsBlock()
346 void* dst, size_t dstCapacity);
[all …]
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c614 size_t ZSTD_readSkippableFrame(void* dst, size_t dstCapacity, in ZSTD_readSkippableFrame() argument
627 RETURN_ERROR_IF(skippableContentSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_readSkippableFrame()
896 static size_t ZSTD_copyRawBlock(void* dst, size_t dstCapacity, in ZSTD_copyRawBlock() argument
900 RETURN_ERROR_IF(srcSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_copyRawBlock()
909 static size_t ZSTD_setRleBlock(void* dst, size_t dstCapacity, in ZSTD_setRleBlock() argument
913 RETURN_ERROR_IF(regenSize > dstCapacity, dstSize_tooSmall, ""); in ZSTD_setRleBlock()
954 void* dst, size_t dstCapacity, in ZSTD_decompressFrame() argument
960 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame()
1071 void* dst, size_t dstCapacity, in ZSTD_decompressMultiFrame() argument
1097 decodedSize = ZSTD_decompressLegacy(dst, dstCapacity, src, frameSize, dict, dictSize); in ZSTD_decompressMultiFrame()
[all …]
H A Dzstd_decompress_block.h49 void* dst, size_t dstCapacity,
69 void* dst, size_t dstCapacity,
H A Dzstd_decompress_block.c80 static void ZSTD_allocateLiteralsBuffer(ZSTD_DCtx* dctx, void* const dst, const size_t dstCapacity,… in ZSTD_allocateLiteralsBuffer() argument
87 …if (streaming == not_streaming && dstCapacity > blockSizeMax + WILDCOPY_OVERLENGTH + litSize + WIL… in ZSTD_allocateLiteralsBuffer()
136 void* dst, size_t dstCapacity, const streaming_operation streaming) in ZSTD_decodeLiteralsBlock() argument
159 size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); in ZSTD_decodeLiteralsBlock()
193 … ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 0); in ZSTD_decodeLiteralsBlock()
253 size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); in ZSTD_decodeLiteralsBlock()
274 … ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 1); in ZSTD_decodeLiteralsBlock()
301 size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); in ZSTD_decodeLiteralsBlock()
322 … ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 1); in ZSTD_decodeLiteralsBlock()
345 void* dst, size_t dstCapacity);
[all …]

12