/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstdmt_compress.c | 1678 size_t toLoad; /* The number of bytes to load from the input. */ member 1700 syncPoint.toLoad = MIN(input.size - input.pos, mtctx->targetSectionSize - mtctx->inBuff.filled); in findSynchronizationPoint() 1710 if (mtctx->inBuff.filled + syncPoint.toLoad < RSYNC_LENGTH) in findSynchronizationPoint() 1751 syncPoint.toLoad = 0; in findSynchronizationPoint() 1764 for (; pos < syncPoint.toLoad; ++pos) { in findSynchronizationPoint() 1770 syncPoint.toLoad = pos + 1; in findSynchronizationPoint() 1826 … (U32)syncPoint.toLoad, (U32)mtctx->inBuff.filled, (U32)mtctx->targetSectionSize); in ZSTDMT_compressStream_generic() 1827 …nBuff.buffer.start + mtctx->inBuff.filled, (const char*)input->src + input->pos, syncPoint.toLoad); in ZSTDMT_compressStream_generic() 1828 input->pos += syncPoint.toLoad; in ZSTDMT_compressStream_generic() 1829 mtctx->inBuff.filled += syncPoint.toLoad; in ZSTDMT_compressStream_generic() [all …]
|
H A D | zstd_compress.c | 5379 size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos; in ZSTD_compressStream_generic() local 5381 zcs->inBuff + zcs->inBuffPos, toLoad, in ZSTD_compressStream_generic()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 1661 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream() local 1664 if (toLoad > remainingInput) { /* not enough input to load full header */ in ZSTD_decompressStream() 1673 … memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream() 1782 size_t const toLoad = neededInSize - zds->inPos; in ZSTD_decompressStream() local 1788 loadedSize = MIN(toLoad, (size_t)(iend-ip)); in ZSTD_decompressStream() 1790 RETURN_ERROR_IF(toLoad > zds->inBuffSize - zds->inPos, in ZSTD_decompressStream() 1793 loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, iend-ip); in ZSTD_decompressStream() 1797 … if (loadedSize < toLoad) { someMoreWork = 0; break; } /* not enough input, wait for more */ in ZSTD_decompressStream()
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 2006 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream() local 2009 if (toLoad > remainingInput) { /* not enough input to load full header */ in ZSTD_decompressStream() 2018 … ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream() 2127 size_t const toLoad = neededInSize - zds->inPos; in ZSTD_decompressStream() local 2133 loadedSize = MIN(toLoad, (size_t)(iend-ip)); in ZSTD_decompressStream() 2135 RETURN_ERROR_IF(toLoad > zds->inBuffSize - zds->inPos, in ZSTD_decompressStream() 2138 … loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, (size_t)(iend-ip)); in ZSTD_decompressStream() 2142 … if (loadedSize < toLoad) { someMoreWork = 0; break; } /* not enough input, wait for more */ in ZSTD_decompressStream()
|
/freebsd/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v06.c | 4035 … size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */ in ZBUFFv06_decompressContinue() local 4037 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */ in ZBUFFv06_decompressContinue() 4043 … memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad; in ZBUFFv06_decompressContinue() 4099 …size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within i… in ZBUFFv06_decompressContinue() local 4101 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv06_decompressContinue() 4102 loadedSize = ZBUFFv06_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv06_decompressContinue() 4105 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv06_decompressContinue()
|
H A D | zstd_v07.c | 4418 … size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */ in ZBUFFv07_decompressContinue() local 4419 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */ in ZBUFFv07_decompressContinue() 4425 … memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad; in ZBUFFv07_decompressContinue() 4485 …size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within i… in ZBUFFv07_decompressContinue() local 4487 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv07_decompressContinue() 4488 loadedSize = ZBUFFv07_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv07_decompressContinue() 4491 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv07_decompressContinue()
|
H A D | zstd_v04.c | 3531 …size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff … in ZBUFF_decompressContinue() local 3533 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFF_decompressContinue() 3534 loadedSize = ZBUFF_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFF_decompressContinue() 3537 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFF_decompressContinue()
|
H A D | zstd_v05.c | 3992 …size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff … in ZBUFFv05_decompressContinue() local 3994 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv05_decompressContinue() 3995 loadedSize = ZBUFFv05_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFFv05_decompressContinue() 3998 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv05_decompressContinue()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 3847 { size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos; in ZSTD_compressStream_generic() local 3849 zcs->inBuff + zcs->inBuffPos, toLoad, in ZSTD_compressStream_generic()
|