| /freebsd-12.1/sys/contrib/zstd/programs/ |
| H A D | dibio.c | 126 size_t const toLoad = (size_t)MIN(maxChunkSize, remainingToLoad); in DiB_loadFiles() local 127 if (toLoad > *bufferSizePtr-pos) break; in DiB_loadFiles() 128 { size_t const readSize = fread(buff+pos, 1, toLoad, f); in DiB_loadFiles() 129 if (readSize != toLoad) EXM_THROW(11, "Pb reading %s", fileName); in DiB_loadFiles() 131 sampleSizes[nbLoadedChunks++] = toLoad; in DiB_loadFiles() 137 if (toLoad < targetChunkSize) { in DiB_loadFiles() 138 fseek(f, (long)(targetChunkSize - toLoad), SEEK_CUR); in DiB_loadFiles()
|
| /freebsd-12.1/sys/contrib/zstd/lib/decompress/ |
| H A D | zstd_decompress.c | 2793 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream() local 2796 if (toLoad > remainingInput) { /* not enough input to load full header */ in ZSTD_decompressStream() 2805 … memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream() 2901 size_t const toLoad = neededInSize - zds->inPos; in ZSTD_decompressStream() local 2905 loadedSize = MIN(toLoad, (size_t)(iend-ip)); in ZSTD_decompressStream() 2907 …if (toLoad > zds->inBuffSize - zds->inPos) return ERROR(corruption_detected); /* should never ha… in ZSTD_decompressStream() 2908 loadedSize = ZSTD_limitCopy(zds->inBuff + zds->inPos, toLoad, ip, iend-ip); in ZSTD_decompressStream() 2912 … if (loadedSize < toLoad) { someMoreWork = 0; break; } /* not enough input, wait for more */ in ZSTD_decompressStream()
|
| /freebsd-12.1/sys/contrib/zstd/lib/compress/ |
| H A D | zstdmt_compress.c | 1760 …size_t const toLoad = MIN(input->size - input->pos, mtctx->targetSectionSize - mtctx->inBuff.fille… in ZSTDMT_compressStream_generic() local 1763 (U32)toLoad, (U32)mtctx->inBuff.filled, (U32)mtctx->targetSectionSize); in ZSTDMT_compressStream_generic() 1764 …*)mtctx->inBuff.buffer.start + mtctx->inBuff.filled, (const char*)input->src + input->pos, toLoad); in ZSTDMT_compressStream_generic() 1765 input->pos += toLoad; in ZSTDMT_compressStream_generic() 1766 mtctx->inBuff.filled += toLoad; in ZSTDMT_compressStream_generic() 1767 forwardInputProgress = toLoad>0; in ZSTDMT_compressStream_generic()
|
| H A D | zstd_compress.c | 3080 { size_t const toLoad = zcs->inBuffTarget - zcs->inBuffPos; in ZSTD_compressStream_generic() local 3082 zcs->inBuff + zcs->inBuffPos, toLoad, in ZSTD_compressStream_generic()
|
| /freebsd-12.1/sys/contrib/zstd/lib/legacy/ |
| H A D | zstd_v06.c | 4005 … size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */ in ZBUFFv06_decompressContinue() local 4007 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */ in ZBUFFv06_decompressContinue() 4013 … memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad; in ZBUFFv06_decompressContinue() 4069 …size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within i… in ZBUFFv06_decompressContinue() local 4071 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv06_decompressContinue() 4072 loadedSize = ZBUFFv06_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv06_decompressContinue() 4075 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv06_decompressContinue()
|
| H A D | zstd_v07.c | 4379 … size_t const toLoad = hSize - zbd->lhSize; /* if hSize!=0, hSize > zbd->lhSize */ in ZBUFFv07_decompressContinue() local 4380 if (toLoad > (size_t)(iend-ip)) { /* not enough input to load full header */ in ZBUFFv07_decompressContinue() 4386 … memcpy(zbd->headerBuffer + zbd->lhSize, ip, toLoad); zbd->lhSize = hSize; ip += toLoad; in ZBUFFv07_decompressContinue() 4446 …size_t const toLoad = neededInSize - zbd->inPos; /* should always be <= remaining space within i… in ZBUFFv07_decompressContinue() local 4448 …if (toLoad > zbd->inBuffSize - zbd->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv07_decompressContinue() 4449 loadedSize = ZBUFFv07_limitCopy(zbd->inBuff + zbd->inPos, toLoad, ip, iend-ip); in ZBUFFv07_decompressContinue() 4452 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv07_decompressContinue()
|
| H A D | zstd_v04.c | 3551 …size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff … in ZBUFF_decompressContinue() local 3553 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFF_decompressContinue() 3554 loadedSize = ZBUFF_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFF_decompressContinue() 3557 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFF_decompressContinue()
|
| H A D | zstd_v05.c | 3953 …size_t toLoad = neededInSize - zbc->inPos; /* should always be <= remaining space within inBuff … in ZBUFFv05_decompressContinue() local 3955 …if (toLoad > zbc->inBuffSize - zbc->inPos) return ERROR(corruption_detected); /* should never ha… in ZBUFFv05_decompressContinue() 3956 loadedSize = ZBUFFv05_limitCopy(zbc->inBuff + zbc->inPos, toLoad, ip, iend-ip); in ZBUFFv05_decompressContinue() 3959 … if (loadedSize < toLoad) { notDone = 0; break; } /* not enough input, wait for more */ in ZBUFFv05_decompressContinue()
|