Home
last modified time | relevance | path

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

/linux/lib/zstd/compress/
H A 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
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-lhSize, src, srcSize, in ZSTD_compressLiterals()
111 ostart+lhSize, dstCapacity-lhSize, src, srcSize, 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);
19 size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSiz…
25 void* dst, size_t dstCapacity,
H A Dzstd_compress.c2487 void* dst, size_t dstCapacity, in ZSTD_entropyCompressSeqStore_internal() argument
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() argument
2612 dst, dstCapacity, 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_defaultCMem); in ZSTD_generateSequences()
2883 ZSTD_compress2(zc, dst, dstCapacity, src, srcSize); in ZSTD_generateSequences()
[all …]
H A Dzstd_compress_superblock.c164 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_sequences() argument
169 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_sequences()
265 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock() argument
272 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock()
430 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_multi() argument
444 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_multi()
552 void* dst, size_t dstCapacity, in ZSTD_compressSuperBlock() argument
569 dst, dstCapacity, in ZSTD_compressSuperBlock()
H A Dzstd_compress_sequences.h32 ZSTD_buildCTable(void* dst, size_t dstCapacity,
41 void* dst, size_t dstCapacity,
H A Dzstd_compress_superblock.h28 void* dst, size_t dstCapacity,
H A Dzstd_compress_internal.h503 MEM_STATIC size_t ZSTD_noCompressBlock (void* dst, size_t dstCapacity, const void* src, size_t srcS… 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, U… in ZSTD_rleCompressBlock() argument
517 RETURN_ERROR_IF(dstCapacity < 4, dstSize_tooSmall, ""); in ZSTD_rleCompressBlock()
1364 void* dst, size_t dstCapacity,
1375 size_t ZSTD_writeLastEmptyBlock(void* dst, size_t dstCapacity);
H A Dhuf_compress.c764 void* startPtr, size_t dstCapacity) in HUF_initCStream() argument
769 bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->bitContainer[0]); in HUF_initCStream()
770 if (dstCapacity <= sizeof(bitC->bitContainer[0])) return ERROR(dstSize_tooSmall); in HUF_initCStream()
/linux/lib/zstd/common/
H A 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 BMI2_TARGET_ATTRIBUTE static size_t FSE_decompress_wksp_body_bmi2(void* dst, size_t dstCapacity, co… 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 …]
H A 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…
355 size_t FSE_decompress_wksp(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, unsign…
358 size_t FSE_decompress_wksp_bmi2(void* dst, size_t dstCapacity, const void* cSrc, size_t cSrcSize, u…
H A 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()
H A 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,
H A Dzstd_internal.h247 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()
/linux/include/linux/
H A Dzstd_lib.h113 ZSTDLIB_API size_t ZSTD_compress( void* dst, size_t 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,
514 void* dst, size_t dstCapacity,
815 void* dst, size_t dstCapacity,
827 void* dst, size_t dstCapacity,
863 void* dst, size_t dstCapacity,
884 void* dst, size_t dstCapacity,
1436 ZSTDLIB_STATIC_API size_t ZSTD_writeSkippableFrame(void* dst, size_t dstCapacity,
[all …]
H A Dlz4.h332 * @dstCapacity: full or partial size of buffer 'dst',
342 * `dstCapacity >= LZ4_compressBound(srcSize)
346 int LZ4_compress_HC(const char *src, char *dst, int srcSize, int dstCapacity,
/linux/lib/zstd/decompress/
H A Dzstd_decompress.c561 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() argument
838 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame()
939 void* dst, size_t dstCapacity, in ZSTD_decompressMultiFrame() argument
979 ZSTD_checkContinuity(dctx, dst, dstCapacity); in ZSTD_decompressMultiFrame()
[all …]
H A Dzstd_decompress_block.c73 static void ZSTD_allocateLiteralsBuffer(ZSTD_DCtx* dctx, void* const dst, const size_t dstCapacity,… in ZSTD_allocateLiteralsBuffer() argument
76 …if (streaming == not_streaming && dstCapacity > ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH + litSize… 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() argument
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, litSize, streaming, expectedWriteSize, 1); in ZSTD_decodeLiteralsBlock()
[all …]
H A Dzstd_decompress_block.h49 void* dst, size_t dstCapacity,
/linux/lib/lz4/
H A Dlz4_decompress.c65 * this value is `dstCapacity` in LZ4_decompress_generic()
469 int compressedSize, int targetOutputSize, int dstCapacity) in LZ4_decompress_safe_partial()
471 dstCapacity = min(targetOutputSize, dstCapacity); in LZ4_decompress_safe_partial()
472 return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity, in LZ4_decompress_safe_partial()
470 LZ4_decompress_safe_partial(const char * src,char * dst,int compressedSize,int targetOutputSize,int dstCapacity) LZ4_decompress_safe_partial() argument