Home
last modified time | relevance | path

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

/external/skia/experimental/tskit/bindings/
Dload.ts8 const toLoad: CallbackFn[] = []; constant
10 toLoad.push(callback);
15 toLoad.forEach(((callback) => callback()));
/external/zstd/programs/
Ddibio.c125 size_t const toLoad = (size_t)MIN(maxChunkSize, remainingToLoad); in DiB_loadFiles() local
126 if (toLoad > *bufferSizePtr-pos) break; in DiB_loadFiles()
127 { size_t const readSize = fread(buff+pos, 1, toLoad, f); in DiB_loadFiles()
128 if (readSize != toLoad) EXM_THROW(11, "Pb reading %s", fileName); in DiB_loadFiles()
130 sampleSizes[nbLoadedChunks++] = toLoad; in DiB_loadFiles()
136 if (toLoad < targetChunkSize) { in DiB_loadFiles()
137 fseek(f, (long)(targetChunkSize - toLoad), SEEK_CUR); in DiB_loadFiles()
/external/zstd/lib/compress/
Dzstdmt_compress.c1644 size_t toLoad; /* The number of bytes to load from the input. */ member
1666 syncPoint.toLoad = MIN(input.size - input.pos, mtctx->targetSectionSize - mtctx->inBuff.filled); in findSynchronizationPoint()
1671 if (mtctx->inBuff.filled + syncPoint.toLoad < RSYNC_LENGTH) in findSynchronizationPoint()
1694 syncPoint.toLoad = 0; in findSynchronizationPoint()
1717 for (; pos < syncPoint.toLoad; ++pos) { in findSynchronizationPoint()
1722 syncPoint.toLoad = pos + 1; in findSynchronizationPoint()
1778 … (U32)syncPoint.toLoad, (U32)mtctx->inBuff.filled, (U32)mtctx->targetSectionSize); in ZSTDMT_compressStream_generic()
1779 …nBuff.buffer.start + mtctx->inBuff.filled, (const char*)input->src + input->pos, syncPoint.toLoad); in ZSTDMT_compressStream_generic()
1780 input->pos += syncPoint.toLoad; in ZSTDMT_compressStream_generic()
1781 mtctx->inBuff.filled += syncPoint.toLoad; in ZSTDMT_compressStream_generic()
[all …]
Dzstd_compress.c4176 size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos; in ZSTD_compressStream_generic() local
4178 zcs->inBuff + zcs->inBuffPos, toLoad, in ZSTD_compressStream_generic()
/external/zstd/lib/decompress/
Dzstd_decompress.c1706 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream() local
1709 if (toLoad > remainingInput) { /* not enough input to load full header */ in ZSTD_decompressStream()
1718 … ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream()
1827 size_t const toLoad = neededInSize - zds->inPos; in ZSTD_decompressStream() local
1833 loadedSize = MIN(toLoad, (size_t)(iend-ip)); in ZSTD_decompressStream()
1835 RETURN_ERROR_IF(toLoad > zds->inBuffSize - zds->inPos, in ZSTD_decompressStream()
1838 … loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, (size_t)(iend-ip)); in ZSTD_decompressStream()
1842 … if (loadedSize < toLoad) { someMoreWork = 0; break; } /* not enough input, wait for more */ in ZSTD_decompressStream()
/external/zstd/lib/legacy/
Dzstd_v06.c4039 … size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */ in ZBUFFv06_decompressContinue() local
4041 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */ in ZBUFFv06_decompressContinue()
4047 … memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad; in ZBUFFv06_decompressContinue()
4103 …size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within i… in ZBUFFv06_decompressContinue() local
4105 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv06_decompressContinue()
4106 loadedSize = ZBUFFv06_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv06_decompressContinue()
4109 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv06_decompressContinue()
Dzstd_v07.c4422 … size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */ in ZBUFFv07_decompressContinue() local
4423 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */ in ZBUFFv07_decompressContinue()
4429 … memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad; in ZBUFFv07_decompressContinue()
4489 …size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within i… in ZBUFFv07_decompressContinue() local
4491 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv07_decompressContinue()
4492 loadedSize = ZBUFFv07_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv07_decompressContinue()
4495 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv07_decompressContinue()
Dzstd_v04.c3535 …size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff … in ZBUFF_decompressContinue() local
3537 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFF_decompressContinue()
3538 loadedSize = ZBUFF_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFF_decompressContinue()
3541 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFF_decompressContinue()
Dzstd_v05.c3996 …size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff … in ZBUFFv05_decompressContinue() local
3998 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv05_decompressContinue()
3999 loadedSize = ZBUFFv05_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFFv05_decompressContinue()
4002 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv05_decompressContinue()