Home
last modified time | relevance | path

Searched refs:ZSTD_blockHeaderSize (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/lib/zstd/decompress/
Dzstd_decompress.c670 if (ZSTD_blockHeaderSize + cBlockSize > remainingSize) in ZSTD_findFrameSizeInfo()
673 ip += ZSTD_blockHeaderSize + cBlockSize; in ZSTD_findFrameSizeInfo()
674 remainingSize -= ZSTD_blockHeaderSize + cBlockSize; in ZSTD_findFrameSizeInfo()
800 remainingSrcSize < ZSTD_FRAMEHEADERSIZE_MIN(dctx->format)+ZSTD_blockHeaderSize, in ZSTD_decompressFrame()
807 RETURN_ERROR_IF(remainingSrcSize < frameHeaderSize+ZSTD_blockHeaderSize, in ZSTD_decompressFrame()
820 ip += ZSTD_blockHeaderSize; in ZSTD_decompressFrame()
821 remainingSrcSize -= ZSTD_blockHeaderSize; in ZSTD_decompressFrame()
1079 dctx->expected = ZSTD_blockHeaderSize; in ZSTD_decompressContinue()
1085 size_t const cBlockSize = ZSTD_getcBlockSize(src, ZSTD_blockHeaderSize, &bp); in ZSTD_decompressContinue()
1105 dctx->expected = ZSTD_blockHeaderSize; /* jump to next header */ in ZSTD_decompressContinue()
[all …]
Dzstd_decompress_block.c59 RETURN_ERROR_IF(srcSize < ZSTD_blockHeaderSize, srcSize_wrong, ""); in ZSTD_getcBlockSize()
/linux-6.1.9/lib/zstd/compress/
Dzstd_compress.c2398 if (srcSize < MIN_CBLOCK_SIZE+ZSTD_blockHeaderSize+1) { in ZSTD_buildSeqStore()
2721 if (cSize != 0 && cSize < maxCSize + ZSTD_blockHeaderSize) { in ZSTD_compressBlock_targetCBlockSize_body()
2809 RETURN_ERROR_IF(dstCapacity < ZSTD_blockHeaderSize + MIN_CBLOCK_SIZE, in ZSTD_compress_frameChunk()
2826 assert(cSize <= blockSize + ZSTD_blockHeaderSize); in ZSTD_compress_frameChunk()
2829 op+ZSTD_blockHeaderSize, dstCapacity-ZSTD_blockHeaderSize, in ZSTD_compress_frameChunk()
2841 cSize += ZSTD_blockHeaderSize; in ZSTD_compress_frameChunk()
2937 RETURN_ERROR_IF(dstCapacity < ZSTD_blockHeaderSize, dstSize_tooSmall, in ZSTD_writeLastEmptyBlock()
2941 return ZSTD_blockHeaderSize; in ZSTD_writeLastEmptyBlock()
3434 op += ZSTD_blockHeaderSize; in ZSTD_writeEpilogue()
3435 dstCapacity -= ZSTD_blockHeaderSize; in ZSTD_writeEpilogue()
[all …]
Dzstd_compress_superblock.c553 BYTE* op = ostart + ZSTD_blockHeaderSize; in ZSTD_compressSubBlock()
575 { size_t cSize = (op-ostart)-ZSTD_blockHeaderSize; in ZSTD_compressSubBlock()
683 return cSizeEstimate + ZSTD_blockHeaderSize; in ZSTD_estimateSubBlockSize()
Dzstd_compress_internal.h438 RETURN_ERROR_IF(srcSize + ZSTD_blockHeaderSize > dstCapacity, in ZSTD_noCompressBlock()
441 ZSTD_memcpy((BYTE*)dst + ZSTD_blockHeaderSize, src, srcSize); in ZSTD_noCompressBlock()
442 return ZSTD_blockHeaderSize + srcSize; in ZSTD_noCompressBlock()
/linux-6.1.9/lib/zstd/common/
Dzstd_internal.h154 static UNUSED_ATTR const size_t ZSTD_blockHeaderSize = ZSTD_BLOCKHEADERSIZE; variable