Lines Matching refs:dstCapacity
16 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()
123 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()
127 return ZSTD_compressRleLiteralsBlock(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()