Searched refs:toLoad (Results 1 – 2 of 2) sorted by relevance
2318 size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream() local2319 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() local2412 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()
3147 size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos; in ZSTD_compressStream_generic() local3148 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()