Lines Matching refs:dstCapacity
16 size_t ZSTD_noCompressLiterals (void* dst, size_t dstCapacity, const void* src, size_t srcSize)
21 RETURN_ERROR_IF(srcSize + flSize > dstCapacity, dstSize_tooSmall, "");
43 size_t ZSTD_compressRleLiteralsBlock (void* dst, size_t dstCapacity, const void* src, size_t srcSize)
48 (void)dstCapacity; /* dstCapacity already guaranteed to be >=4, hence large enough */
73 void* dst, size_t dstCapacity,
93 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize);
98 if (srcSize <= minLitSize) return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize);
101 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression");
107 ostart+lhSize, dstCapacity-lhSize, src, srcSize,
111 ostart+lhSize, dstCapacity-lhSize, src, srcSize,
123 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize);
127 return ZSTD_compressRleLiteralsBlock(dst, dstCapacity, src, srcSize);