Home | History | Annotate | Download | only in compress

Lines Matching refs:filled

814     size_t filled;
1009 mtctx->inBuff.filled = 0;
1101 fps.ingested = mtctx->consumed + mtctx->inBuff.filled;
1329 mtctx->inBuff.filled = 0;
1384 assert(mtctx->inBuff.filled >= srcSize);
1405 mtctx->inBuff.filled = 0;
1532 if (mtctx->inBuff.filled > 0) return 1; /* input is not empty, and still needs to be converted into a job */
1637 * Returns non-zero if the buffer is filled.
1688 mtctx->inBuff.filled = 0;
1716 syncPoint.toLoad = MIN(input.size - input.pos, mtctx->targetSectionSize - mtctx->inBuff.filled);
1721 if (mtctx->inBuff.filled + input.size - input.pos < RSYNC_MIN_BLOCK_SIZE)
1726 if (mtctx->inBuff.filled + syncPoint.toLoad < RSYNC_LENGTH)
1736 if (mtctx->inBuff.filled < RSYNC_MIN_BLOCK_SIZE) {
1741 pos = RSYNC_MIN_BLOCK_SIZE - mtctx->inBuff.filled;
1746 assert(mtctx->inBuff.filled >= RSYNC_LENGTH);
1747 prev = (BYTE const*)mtctx->inBuff.buffer.start + mtctx->inBuff.filled - RSYNC_LENGTH;
1756 assert(mtctx->inBuff.filled >= RSYNC_MIN_BLOCK_SIZE);
1759 prev = (BYTE const*)mtctx->inBuff.buffer.start + mtctx->inBuff.filled - RSYNC_LENGTH;
1789 assert(mtctx->inBuff.filled + pos >= RSYNC_MIN_BLOCK_SIZE);
1803 size_t hintInSize = mtctx->targetSectionSize - mtctx->inBuff.filled;
1832 assert(mtctx->inBuff.filled == 0); /* Can't fill an empty buffer */
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);
1852 mtctx->inBuff.filled += syncPoint.toLoad;
1860 * - We filled the input buffer: flush this job but don't end the frame.
1863 assert(mtctx->inBuff.filled == 0 || mtctx->inBuff.filled == mtctx->targetSectionSize || mtctx->params.rsyncable);
1868 || (mtctx->inBuff.filled >= mtctx->targetSectionSize) /* filled enough : let's compress */
1869 || ((endOp != ZSTD_e_continue) && (mtctx->inBuff.filled > 0)) /* something to flush : let's go */
1871 filled;
1872 assert(mtctx->inBuff.filled <= mtctx->targetSectionSize);