Lines Matching refs:capacity
91 size_t capacity; member
143 totalBufferSize += bufPool->bTable[u].capacity; in ZSTDMT_sizeof_bufferPool()
190 size_t const availBufferSize = buf.capacity; in ZSTDMT_getBuffer()
195 bufPool->nbBuffers, (U32)buf.capacity); in ZSTDMT_getBuffer()
209 buffer.capacity = (start==NULL) ? 0 : bSize; in ZSTDMT_getBuffer()
228 if (buffer.capacity < bSize) { in ZSTDMT_resizeBuffer()
232 newBuffer.capacity = start == NULL ? 0 : bSize; in ZSTDMT_resizeBuffer()
234 assert(newBuffer.capacity >= buffer.capacity); in ZSTDMT_resizeBuffer()
235 ZSTD_memcpy(newBuffer.start, buffer.start, buffer.capacity); in ZSTDMT_resizeBuffer()
254 (U32)buf.capacity, (U32)(bufPool->nbBuffers-1)); in ZSTDMT_releaseBuffer()
288 seq.capacity = buffer.capacity / sizeof(rawSeq); in bufferToSeq()
296 buffer.capacity = seq.capacity * sizeof(rawSeq); in seqToBuffer()
578 seqStore.size == 0 && seqStore.capacity > 0); in ZSTDMT_serialState_update()
722 …size_t const hSize = ZSTD_compressContinue(cctx, dstBuff.start, dstBuff.capacity, job->src.start, … in ZSTDMT_compressionJob()
734 BYTE* oend = op + dstBuff.capacity; in ZSTDMT_compressionJob()
807 size_t capacity; /* The capacity of buffer. */ member
1040 + mtctx->roundBuff.capacity; in ZSTDMT_sizeof_CCtx()
1298 size_t const capacity = MAX(windowSize, sectionsSize) + slackSize; in ZSTDMT_initCStream_internal() local
1299 if (mtctx->roundBuff.capacity < capacity) { in ZSTDMT_initCStream_internal()
1302 mtctx->roundBuff.buffer = (BYTE*)ZSTD_customMalloc(capacity, mtctx->cMem); in ZSTDMT_initCStream_internal()
1304 mtctx->roundBuff.capacity = 0; in ZSTDMT_initCStream_internal()
1307 mtctx->roundBuff.capacity = capacity; in ZSTDMT_initCStream_internal()
1310 DEBUGLOG(4, "roundBuff capacity : %u KB", (U32)(mtctx->roundBuff.capacity>>10)); in ZSTDMT_initCStream_internal()
1344 … assert(job->dstBuff.capacity >= ZSTD_blockHeaderSize); /* no buffer should ever be that small */ in ZSTDMT_writeLastEmptyBlock()
1346 job->cSize = ZSTD_writeLastEmptyBlock(job->dstBuff.start, job->dstBuff.capacity); in ZSTDMT_writeLastEmptyBlock()
1567 BYTE const* const bufferEnd = bufferStart + buffer.capacity; in ZSTDMT_isOverlapped()
1607 (size_t)buffer.start + buffer.capacity); in ZSTDMT_waitForLdmComplete()
1626 size_t const spaceLeft = mtctx->roundBuff.capacity - mtctx->roundBuff.pos; in ZSTDMT_tryGetInputRange()
1632 assert(mtctx->roundBuff.capacity >= target); in ZSTDMT_tryGetInputRange()
1642 buffer.capacity = prefixSize; in ZSTDMT_tryGetInputRange()
1653 buffer.capacity = target; in ZSTDMT_tryGetInputRange()
1668 (size_t)buffer.start + buffer.capacity); in ZSTDMT_tryGetInputRange()
1673 assert(mtctx->roundBuff.pos + buffer.capacity <= mtctx->roundBuff.capacity); in ZSTDMT_tryGetInputRange()
1824 assert(mtctx->inBuff.buffer.capacity >= mtctx->targetSectionSize); in ZSTDMT_compressStream_generic()