Home
last modified time | relevance | path

Searched refs:toLoad (Results 1 – 2 of 2) sorted by relevance

/linux-4.19.296/lib/zstd/
Ddecompress.c2318 size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream() local
2319 if (toLoad > (size_t)(iend - ip)) { /* not enough input to load full header */ in ZSTD_decompressStream()
2326 memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); in ZSTD_decompressStream()
2328 ip += toLoad; in ZSTD_decompressStream()
2410 …size_t const toLoad = neededInSize - zds->inPos; /* should always be <= remaining space within inB… in ZSTD_decompressStream() local
2412 if (toLoad > zds->inBuffSize - zds->inPos) in ZSTD_decompressStream()
2414 loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, iend - ip); in ZSTD_decompressStream()
2417 if (loadedSize < toLoad) { in ZSTD_decompressStream()
Dcompress.c3147 size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos; in ZSTD_compressStream_generic() local
3148 size_t const loaded = ZSTD_limitCopy(zcs->inBuff + zcs->inBuffPos, toLoad, ip, iend - ip); in ZSTD_compressStream_generic()
3151 if ((zcs->inBuffPos == zcs->inToCompress) || (!flush && (toLoad != loaded))) { in ZSTD_compressStream_generic()