dstCapacity 346 include/linux/lz4.h int LZ4_compress_HC(const char *src, char *dst, int srcSize, int dstCapacity, dstCapacity 256 include/linux/zstd.h size_t ZSTD_compressCCtx(ZSTD_CCtx *ctx, void *dst, size_t dstCapacity, dstCapacity 299 include/linux/zstd.h size_t ZSTD_decompressDCtx(ZSTD_DCtx *ctx, void *dst, size_t dstCapacity, dstCapacity 325 include/linux/zstd.h size_t ZSTD_compress_usingDict(ZSTD_CCtx *ctx, void *dst, size_t dstCapacity, dstCapacity 346 include/linux/zstd.h size_t ZSTD_decompress_usingDict(ZSTD_DCtx *ctx, void *dst, size_t dstCapacity, dstCapacity 406 include/linux/zstd.h size_t ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, dstCapacity 458 include/linux/zstd.h size_t dstCapacity, const void *src, size_t srcSize, dstCapacity 1015 include/linux/zstd.h size_t ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, dstCapacity 1017 include/linux/zstd.h size_t ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, dstCapacity 1105 include/linux/zstd.h size_t ZSTD_decompressContinue(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, dstCapacity 1150 include/linux/zstd.h size_t ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, dstCapacity 1152 include/linux/zstd.h size_t ZSTD_decompressBlock(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, dstCapacity 459 lib/lz4/lz4_decompress.c int compressedSize, int targetOutputSize, int dstCapacity) dstCapacity 461 lib/lz4/lz4_decompress.c dstCapacity = min(targetOutputSize, dstCapacity); dstCapacity 462 lib/lz4/lz4_decompress.c return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity, dstCapacity 78 lib/zstd/bitstream.h ZSTD_STATIC size_t BIT_initCStream(BIT_CStream_t *bitC, void *dstBuffer, size_t dstCapacity); dstCapacity 162 lib/zstd/bitstream.h ZSTD_STATIC size_t BIT_initCStream(BIT_CStream_t *bitC, void *startPtr, size_t dstCapacity) dstCapacity 168 lib/zstd/bitstream.h bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->ptr); dstCapacity 169 lib/zstd/bitstream.h if (dstCapacity <= sizeof(bitC->ptr)) dstCapacity 434 lib/zstd/compress.c size_t ZSTD_noCompressBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 436 lib/zstd/compress.c if (srcSize + ZSTD_blockHeaderSize > dstCapacity) dstCapacity 443 lib/zstd/compress.c static size_t ZSTD_noCompressLiterals(void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 448 lib/zstd/compress.c if (srcSize + flSize > dstCapacity) dstCapacity 462 lib/zstd/compress.c static size_t ZSTD_compressRleLiteralsBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 467 lib/zstd/compress.c (void)dstCapacity; /* dstCapacity already guaranteed to be >=4, hence large enough */ dstCapacity 482 lib/zstd/compress.c static size_t ZSTD_compressLiterals(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 496 lib/zstd/compress.c return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); dstCapacity 499 lib/zstd/compress.c if (dstCapacity < lhSize + 1) dstCapacity 506 lib/zstd/compress.c cLitSize = singleStream ? HUF_compress1X_repeat(ostart + lhSize, dstCapacity - lhSize, src, srcSize, 255, 11, zc->tmpCounters, dstCapacity 508 lib/zstd/compress.c : HUF_compress4X_repeat(ostart + lhSize, dstCapacity - lhSize, src, srcSize, 255, 11, zc->tmpCounters, dstCapacity 520 lib/zstd/compress.c return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); dstCapacity 524 lib/zstd/compress.c return ZSTD_compressRleLiteralsBlock(dst, dstCapacity, src, srcSize); dstCapacity 586 lib/zstd/compress.c ZSTD_STATIC size_t ZSTD_compressSequences_internal(ZSTD_CCtx *zc, void *dst, size_t dstCapacity) dstCapacity 599 lib/zstd/compress.c BYTE *const oend = ostart + dstCapacity; dstCapacity 623 lib/zstd/compress.c size_t const cSize = ZSTD_compressLiterals(zc, op, dstCapacity, literals, litSize); dstCapacity 832 lib/zstd/compress.c ZSTD_STATIC size_t ZSTD_compressSequences(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, size_t srcSize) dstCapacity 834 lib/zstd/compress.c size_t const cSize = ZSTD_compressSequences_internal(zc, dst, dstCapacity); dstCapacity 841 lib/zstd/compress.c int const uncompressibleError = cSize == ERROR(dstSize_tooSmall) && srcSize <= dstCapacity; dstCapacity 2333 lib/zstd/compress.c static size_t ZSTD_compressBlock_internal(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 2345 lib/zstd/compress.c return ZSTD_compressSequences(zc, dst, dstCapacity, srcSize); dstCapacity 2355 lib/zstd/compress.c static size_t ZSTD_compress_generic(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 lastFrameChunk) dstCapacity 2371 lib/zstd/compress.c if (dstCapacity < ZSTD_blockHeaderSize + MIN_CBLOCK_SIZE) dstCapacity 2403 lib/zstd/compress.c cSize = ZSTD_compressBlock_internal(cctx, op + ZSTD_blockHeaderSize, dstCapacity - ZSTD_blockHeaderSize, ip, blockSize); dstCapacity 2409 lib/zstd/compress.c if (blockSize + ZSTD_blockHeaderSize > dstCapacity) dstCapacity 2421 lib/zstd/compress.c dstCapacity -= cSize; dstCapacity 2431 lib/zstd/compress.c static size_t ZSTD_writeFrameHeader(void *dst, size_t dstCapacity, ZSTD_parameters params, U64 pledgedSrcSize, U32 dictID) dstCapacity 2444 lib/zstd/compress.c if (dstCapacity < ZSTD_frameHeaderSize_max) dstCapacity 2490 lib/zstd/compress.c static size_t ZSTD_compressContinue_internal(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 frame, U32 lastFrameChunk) dstCapacity 2499 lib/zstd/compress.c fhSize = ZSTD_writeFrameHeader(dst, dstCapacity, cctx->params, cctx->frameContentSize, cctx->dictID); dstCapacity 2502 lib/zstd/compress.c dstCapacity -= fhSize; dstCapacity 2530 lib/zstd/compress.c size_t const cSize = frame ? ZSTD_compress_generic(cctx, dst, dstCapacity, src, srcSize, lastFrameChunk) dstCapacity 2531 lib/zstd/compress.c : ZSTD_compressBlock_internal(cctx, dst, dstCapacity, src, srcSize); dstCapacity 2539 lib/zstd/compress.c size_t ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 2541 lib/zstd/compress.c return ZSTD_compressContinue_internal(cctx, dst, dstCapacity, src, srcSize, 1, 0); dstCapacity 2546 lib/zstd/compress.c size_t ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 2551 lib/zstd/compress.c return ZSTD_compressContinue_internal(cctx, dst, dstCapacity, src, srcSize, 0, 0); dstCapacity 2765 lib/zstd/compress.c static size_t ZSTD_writeEpilogue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity) dstCapacity 2776 lib/zstd/compress.c fhSize = ZSTD_writeFrameHeader(dst, dstCapacity, cctx->params, 0, 0); dstCapacity 2779 lib/zstd/compress.c dstCapacity -= fhSize; dstCapacity 2787 lib/zstd/compress.c if (dstCapacity < 4) dstCapacity 2791 lib/zstd/compress.c dstCapacity -= ZSTD_blockHeaderSize; dstCapacity 2796 lib/zstd/compress.c if (dstCapacity < 4) dstCapacity 2806 lib/zstd/compress.c size_t ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 2809 lib/zstd/compress.c size_t const cSize = ZSTD_compressContinue_internal(cctx, dst, dstCapacity, src, srcSize, 1, 1); dstCapacity 2812 lib/zstd/compress.c endResult = ZSTD_writeEpilogue(cctx, (char *)dst + cSize, dstCapacity - cSize); dstCapacity 2818 lib/zstd/compress.c static size_t ZSTD_compress_internal(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, dstCapacity 2822 lib/zstd/compress.c return ZSTD_compressEnd(cctx, dst, dstCapacity, src, srcSize); dstCapacity 2825 lib/zstd/compress.c size_t ZSTD_compress_usingDict(ZSTD_CCtx *ctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, dstCapacity 2828 lib/zstd/compress.c return ZSTD_compress_internal(ctx, dst, dstCapacity, src, srcSize, dict, dictSize, params); dstCapacity 2831 lib/zstd/compress.c size_t ZSTD_compressCCtx(ZSTD_CCtx *ctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, ZSTD_parameters params) dstCapacity 2833 lib/zstd/compress.c return ZSTD_compress_internal(ctx, dst, dstCapacity, src, srcSize, NULL, 0, params); dstCapacity 2930 lib/zstd/compress.c size_t ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_CDict *cdict) dstCapacity 2941 lib/zstd/compress.c return ZSTD_compressEnd(cctx, dst, dstCapacity, src, srcSize); dstCapacity 3122 lib/zstd/compress.c ZSTD_STATIC size_t ZSTD_limitCopy(void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 3124 lib/zstd/compress.c size_t const length = MIN(dstCapacity, srcSize); dstCapacity 412 lib/zstd/decompress.c static size_t ZSTD_copyRawBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 414 lib/zstd/decompress.c if (srcSize > dstCapacity) dstCapacity 420 lib/zstd/decompress.c static size_t ZSTD_setRleBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize, size_t regenSize) dstCapacity 424 lib/zstd/decompress.c if (regenSize > dstCapacity) dstCapacity 1445 lib/zstd/decompress.c static size_t ZSTD_decompressBlock_internal(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 1465 lib/zstd/decompress.c return ZSTD_decompressSequencesLong(dctx, dst, dstCapacity, ip, srcSize); dstCapacity 1466 lib/zstd/decompress.c return ZSTD_decompressSequences(dctx, dst, dstCapacity, ip, srcSize); dstCapacity 1479 lib/zstd/decompress.c size_t ZSTD_decompressBlock(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 1483 lib/zstd/decompress.c dSize = ZSTD_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize); dstCapacity 1497 lib/zstd/decompress.c size_t ZSTD_generateNxBytes(void *dst, size_t dstCapacity, BYTE byte, size_t length) dstCapacity 1499 lib/zstd/decompress.c if (length > dstCapacity) dstCapacity 1566 lib/zstd/decompress.c static size_t ZSTD_decompressFrame(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void **srcPtr, size_t *srcSizePtr) dstCapacity 1570 lib/zstd/decompress.c BYTE *const oend = ostart + dstCapacity; dstCapacity 1643 lib/zstd/decompress.c static size_t ZSTD_decompressMultiFrame(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, dstCapacity 1691 lib/zstd/decompress.c const size_t res = ZSTD_decompressFrame(dctx, dst, dstCapacity, &src, &srcSize); dstCapacity 1697 lib/zstd/decompress.c dstCapacity -= res; dstCapacity 1707 lib/zstd/decompress.c size_t ZSTD_decompress_usingDict(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize) dstCapacity 1709 lib/zstd/decompress.c return ZSTD_decompressMultiFrame(dctx, dst, dstCapacity, src, srcSize, dict, dictSize, NULL); dstCapacity 1712 lib/zstd/decompress.c size_t ZSTD_decompressDCtx(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 1714 lib/zstd/decompress.c return ZSTD_decompress_usingDict(dctx, dst, dstCapacity, src, srcSize, NULL, 0); dstCapacity 1743 lib/zstd/decompress.c size_t ZSTD_decompressContinue(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 1748 lib/zstd/decompress.c if (dstCapacity) dstCapacity 1811 lib/zstd/decompress.c case bt_compressed: rSize = ZSTD_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize); break; dstCapacity 1812 lib/zstd/decompress.c case bt_raw: rSize = ZSTD_copyRawBlock(dst, dstCapacity, src, srcSize); break; dstCapacity 1813 lib/zstd/decompress.c case bt_rle: rSize = ZSTD_setRleBlock(dst, dstCapacity, src, srcSize, dctx->rleSize); break; dstCapacity 2147 lib/zstd/decompress.c size_t ZSTD_decompress_usingDDict(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_DDict *ddict) dstCapacity 2150 lib/zstd/decompress.c return ZSTD_decompressMultiFrame(dctx, dst, dstCapacity, src, srcSize, NULL, 0, ddict); dstCapacity 2291 lib/zstd/decompress.c ZSTD_STATIC size_t ZSTD_limitCopy(void *dst, size_t dstCapacity, const void *src, size_t srcSize) dstCapacity 2293 lib/zstd/decompress.c size_t const length = MIN(dstCapacity, srcSize); dstCapacity 129 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_compress_usingCTable(void *dst, size_t dstCapacity, const void *src, size_t srcSize, const FSE_CTable *ct); dstCapacity 197 lib/zstd/fse.h FSE_PUBLIC_API size_t FSE_decompress_usingDTable(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, const FSE_DTable *dt); dstCapacity 284 lib/zstd/fse.h size_t FSE_decompress_wksp(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspaceSize); dstCapacity 294 lib/zstd/fse_decompress.c size_t FSE_decompress_wksp(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspaceSize) dstCapacity 331 lib/zstd/fse_decompress.c return FSE_decompress_usingDTable(dst, dstCapacity, ip, cSrcSize, dt); /* always return, even if it is an error code */