Lines Matching refs:remainingSize
1517 size_t remainingSize = srcSize; in ZSTD_findFrameCompressedSize() local
1520 size_t const headerSize = ZSTD_frameHeaderSize(ip, remainingSize); in ZSTD_findFrameCompressedSize()
1526 size_t const ret = ZSTD_getFrameParams(&fParams, ip, remainingSize); in ZSTD_findFrameCompressedSize()
1534 remainingSize -= headerSize; in ZSTD_findFrameCompressedSize()
1539 size_t const cBlockSize = ZSTD_getcBlockSize(ip, remainingSize, &blockProperties); in ZSTD_findFrameCompressedSize()
1543 if (ZSTD_blockHeaderSize + cBlockSize > remainingSize) in ZSTD_findFrameCompressedSize()
1547 remainingSize -= ZSTD_blockHeaderSize + cBlockSize; in ZSTD_findFrameCompressedSize()
1554 if (remainingSize < 4) in ZSTD_findFrameCompressedSize()
1557 remainingSize -= 4; in ZSTD_findFrameCompressedSize()
1572 size_t remainingSize = *srcSizePtr; in ZSTD_decompressFrame() local
1575 if (remainingSize < ZSTD_frameHeaderSize_min + ZSTD_blockHeaderSize) in ZSTD_decompressFrame()
1583 if (remainingSize < frameHeaderSize + ZSTD_blockHeaderSize) in ZSTD_decompressFrame()
1587 remainingSize -= frameHeaderSize; in ZSTD_decompressFrame()
1594 size_t const cBlockSize = ZSTD_getcBlockSize(ip, remainingSize, &blockProperties); in ZSTD_decompressFrame()
1599 remainingSize -= ZSTD_blockHeaderSize; in ZSTD_decompressFrame()
1600 if (cBlockSize > remainingSize) in ZSTD_decompressFrame()
1617 remainingSize -= cBlockSize; in ZSTD_decompressFrame()
1625 if (remainingSize < 4) in ZSTD_decompressFrame()
1631 remainingSize -= 4; in ZSTD_decompressFrame()
1636 *srcSizePtr = remainingSize; in ZSTD_decompressFrame()