HomeSort by: relevance | last modified time | path
    Searched defs:toLoad (Results 1 - 7 of 7) sorted by relevancy

  /src/external/bsd/zstd/dist/lib/compress/
zstdmt_compress.c 1694 size_t toLoad; /* The number of bytes to load from the input. */
1716 syncPoint.toLoad = MIN(input.size - input.pos, mtctx->targetSectionSize - mtctx->inBuff.filled);
1726 if (mtctx->inBuff.filled + syncPoint.toLoad < RSYNC_LENGTH)
1767 syncPoint.toLoad = 0;
1781 for (; pos < syncPoint.toLoad; ++pos) {
1791 syncPoint.toLoad = pos + 1;
1849 (U32)syncPoint.toLoad, (U32)mtctx->inBuff.filled, (U32)mtctx->targetSectionSize);
1850 ZSTD_memcpy((char*)mtctx->inBuff.buffer.start + mtctx->inBuff.filled, (const char*)input->src + input->pos, syncPoint.toLoad);
1851 input->pos += syncPoint.toLoad;
1852 mtctx->inBuff.filled += syncPoint.toLoad;
    [all...]
zstd_compress.c 6036 size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos;
6038 zcs->inBuff + zcs->inBuffPos, toLoad,
  /src/external/bsd/zstd/dist/lib/decompress/
zstd_decompress.c 2161 size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */
2164 if (toLoad > remainingInput) { /* not enough input to load full header */
2178 ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad;
2292 size_t const toLoad = neededInSize - zds->inPos;
2298 loadedSize = MIN(toLoad, (size_t)(iend-ip));
2300 RETURN_ERROR_IF(toLoad > zds->inBuffSize - zds->inPos,
2303 loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, (size_t)(iend-ip));
2310 if (loadedSize < toLoad) { someMoreWork = 0; break; } /* not enough input, wait for more */
  /src/external/bsd/zstd/dist/lib/legacy/
zstd_v04.c 3482 size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff */
3484 if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never happen */
3485 loadedSize = ZBUFF_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip);
3488 if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */
zstd_v05.c 3947 size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff */
3949 if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never happen */
3950 loadedSize = ZBUFFv05_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip);
3953 if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */
zstd_v06.c 3986 size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */
3988 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */
3995 memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad;
4051 size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within inBuff */
4053 if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never happen */
4054 loadedSize = ZBUFFv06_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip);
4057 if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */
zstd_v07.c 4366 size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */
4367 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */
4374 memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad;
4434 size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within inBuff */
4436 if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never happen */
4437 loadedSize = ZBUFFv07_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip);
4440 if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */

Completed in 48 milliseconds