Searched refs:toLoad (Results 1 - 9 of 9) sorted by relevance

/freebsd-current/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c1661 size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ local
1664 if (toLoad > remainingInput) { /* not enough input to load full header */
1673 memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad;
1782 size_t const toLoad = neededInSize - zds->inPos; local
1788 loadedSize = MIN(toLoad, (size_t)(iend-ip));
1790 RETURN_ERROR_IF(toLoad > zds->inBuffSize - zds->inPos,
1793 loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, iend-ip);
1797 if (loadedSize < toLoad) { someMoreWork = 0; break; } /* not enough input, wait for more */
/freebsd-current/sys/contrib/zstd/lib/compress/
H A Dzstdmt_compress.c1678 size_t toLoad; /* The number of bytes to load from the input. */ member in struct:__anon122
1700 syncPoint.toLoad = MIN(input.size - input.pos, mtctx->targetSectionSize - mtctx->inBuff.filled);
1710 if (mtctx->inBuff.filled + syncPoint.toLoad < RSYNC_LENGTH)
1751 syncPoint.toLoad = 0;
1764 for (; pos < syncPoint.toLoad; ++pos) {
1770 syncPoint.toLoad = pos + 1;
1826 (U32)syncPoint.toLoad, (U32)mtctx->inBuff.filled, (U32)mtctx->targetSectionSize);
1827 ZSTD_memcpy((char*)mtctx->inBuff.buffer.start + mtctx->inBuff.filled, (const char*)input->src + input->pos, syncPoint.toLoad);
1828 input->pos += syncPoint.toLoad;
1829 mtctx->inBuff.filled += syncPoint.toLoad;
[all...]
H A Dzstd_compress.c5379 size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos; local
5381 zcs->inBuff + zcs->inBuffPos, toLoad,
/freebsd-current/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c2006 size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ local
2009 if (toLoad > remainingInput) { /* not enough input to load full header */
2018 ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad;
2127 size_t const toLoad = neededInSize - zds->inPos; local
2133 loadedSize = MIN(toLoad, (size_t)(iend-ip));
2135 RETURN_ERROR_IF(toLoad > zds->inBuffSize - zds->inPos,
2138 loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, (size_t)(iend-ip));
2142 if (loadedSize < toLoad) { someMoreWork = 0; break; } /* not enough input, wait for more */
/freebsd-current/sys/contrib/zstd/lib/legacy/
H A Dzstd_v06.c4035 size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */ local
4037 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */
4043 memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad;
4099 size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within inBuff */ local
4101 if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never happen */
4102 loadedSize = ZBUFFv06_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip);
4105 if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */
H A Dzstd_v07.c4418 size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */ local
4419 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */
4425 memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad;
4485 size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within inBuff */ local
4487 if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never happen */
4488 loadedSize = ZBUFFv07_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip);
4491 if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */
H A Dzstd_v05.c3992 size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff */ local
3994 if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never happen */
3995 loadedSize = ZBUFFv05_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip);
3998 if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */
H A Dzstd_v04.c3531 size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff */ local
3533 if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never happen */
3534 loadedSize = ZBUFF_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip);
3537 if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c3847 { size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos; local
3849 zcs->inBuff + zcs->inBuffPos, toLoad,

Completed in 387 milliseconds