Searched refs:cBlockSize (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/lib/zstd/decompress/ |
D | zstd_decompress.c | 666 size_t const cBlockSize = ZSTD_getcBlockSize(ip, remainingSize, &blockProperties); in ZSTD_findFrameSizeInfo() local 667 if (ZSTD_isError(cBlockSize)) in ZSTD_findFrameSizeInfo() 668 return ZSTD_errorFrameSizeInfo(cBlockSize); in ZSTD_findFrameSizeInfo() 670 if (ZSTD_blockHeaderSize + cBlockSize > remainingSize) in ZSTD_findFrameSizeInfo() 673 ip += ZSTD_blockHeaderSize + cBlockSize; in ZSTD_findFrameSizeInfo() 674 remainingSize -= ZSTD_blockHeaderSize + cBlockSize; in ZSTD_findFrameSizeInfo() 817 size_t const cBlockSize = ZSTD_getcBlockSize(ip, remainingSrcSize, &blockProperties); in ZSTD_decompressFrame() local 818 if (ZSTD_isError(cBlockSize)) return cBlockSize; in ZSTD_decompressFrame() 822 RETURN_ERROR_IF(cBlockSize > remainingSrcSize, srcSize_wrong, ""); in ZSTD_decompressFrame() 827 …decodedSize = ZSTD_decompressBlock_internal(dctx, op, (size_t)(oend-op), ip, cBlockSize, /* frame … in ZSTD_decompressFrame() [all …]
|
/linux-6.1.9/lib/zstd/compress/ |
D | zstd_compress.c | 4711 size_t cBlockSize; in ZSTD_compressSequences_internal() local 4724 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal() 4725 FORWARD_IF_ERROR(cBlockSize, "Nocompress block failed"); in ZSTD_compressSequences_internal() 4726 DEBUGLOG(4, "Block too small, writing out nocompress block: cSize: %zu", cBlockSize); in ZSTD_compressSequences_internal() 4727 cSize += cBlockSize; in ZSTD_compressSequences_internal() 4729 op += cBlockSize; in ZSTD_compressSequences_internal() 4731 dstCapacity -= cBlockSize; in ZSTD_compressSequences_internal() 4757 cBlockSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compressSequences_internal() 4758 FORWARD_IF_ERROR(cBlockSize, "Nocompress block failed"); in ZSTD_compressSequences_internal() 4759 DEBUGLOG(4, "Writing out nocompress block, size: %zu", cBlockSize); in ZSTD_compressSequences_internal() [all …]
|