Searched refs:toLoad (Results 1 – 4 of 4) sorted by relevance
/dragonfly/contrib/zstd/programs/ |
H A D | dibio.c | 125 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()
|
/dragonfly/contrib/zstd/lib/compress/ |
H A D | zstdmt_compress.c | 1644 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 …]
|
H A D | zstd_compress.c | 4176 size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos; in ZSTD_compressStream_generic() local 4178 zcs->inBuff + zcs->inBuffPos, toLoad, in ZSTD_compressStream_generic()
|
/dragonfly/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 1706 … 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()
|