Home
last modified time | relevance | path

Searched refs:cBlockSize (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/lib/zstd/decompress/
Dzstd_decompress.c712 size_t const cBlockSize = ZSTD_getcBlockSize(ip, remainingSize, &blockProperties); in ZSTD_findFrameSizeInfo() local
713 if (ZSTD_isError(cBlockSize)) in ZSTD_findFrameSizeInfo()
714 return ZSTD_errorFrameSizeInfo(cBlockSize); in ZSTD_findFrameSizeInfo()
716 if (ZSTD_blockHeaderSize + cBlockSize > remainingSize) in ZSTD_findFrameSizeInfo()
719 ip += ZSTD_blockHeaderSize + cBlockSize; in ZSTD_findFrameSizeInfo()
720 remainingSize -= ZSTD_blockHeaderSize + cBlockSize; in ZSTD_findFrameSizeInfo()
864 size_t const cBlockSize = ZSTD_getcBlockSize(ip, remainingSrcSize, &blockProperties); in ZSTD_decompressFrame() local
865 if (ZSTD_isError(cBlockSize)) return cBlockSize; in ZSTD_decompressFrame()
869 RETURN_ERROR_IF(cBlockSize > remainingSrcSize, srcSize_wrong, ""); in ZSTD_decompressFrame()
891 … = ZSTD_decompressBlock_internal(dctx, op, (size_t)(oBlockEnd-op), ip, cBlockSize, /* frame */ 1, … in ZSTD_decompressFrame()
[all …]
/linux-6.12.1/lib/zstd/compress/
Dzstd_compress.c5832 size_t cBlockSize; in ZSTD_compressSequences_internal() local
5845 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
5846 FORWARD_IF_ERROR(cBlockSize, "Nocompress block failed"); in ZSTD_compressSequences_internal()
5847 DEBUGLOG(4, "Block too small, writing out nocompress block: cSize: %zu", cBlockSize); in ZSTD_compressSequences_internal()
5848 cSize += cBlockSize; in ZSTD_compressSequences_internal()
5850 op += cBlockSize; in ZSTD_compressSequences_internal()
5852 dstCapacity -= cBlockSize; in ZSTD_compressSequences_internal()
5878 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal()
5879 FORWARD_IF_ERROR(cBlockSize, "Nocompress block failed"); in ZSTD_compressSequences_internal()
5880 DEBUGLOG(4, "Writing out nocompress block, size: %zu", cBlockSize); in ZSTD_compressSequences_internal()
[all …]