Lines Matching refs:blockSize

5168 ZSTDLIB_API size_t ZSTD_insertBlock    (ZSTD_DCtx* dctx, const void* blockStart, size_t blockSize);…
10153 size_t blockSize; member
14213 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, (size_t)1 << cParams.windowLog); in ZSTD_estimateCCtxSize_usingCCtxParams() local
14215 size_t const maxNbSeq = blockSize / divider; in ZSTD_estimateCCtxSize_usingCCtxParams()
14216 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_estimateCCtxSize_usingCCtxParams()
14224 …eqSpace = ZSTD_cwksp_alloc_size(ZSTD_ldm_getMaxNbSeq(params->ldmParams, blockSize) * sizeof(rawSeq… in ZSTD_estimateCCtxSize_usingCCtxParams()
14278 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, (size_t)1 << cParams.windowLog); in ZSTD_estimateCStreamSize_usingCCtxParams() local
14279 size_t const inBuffSize = ((size_t)1 << cParams.windowLog) + blockSize; in ZSTD_estimateCStreamSize_usingCCtxParams()
14280 size_t const outBuffSize = ZSTD_compressBound(blockSize) + 1; in ZSTD_estimateCStreamSize_usingCCtxParams()
14523 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_resetCCtx_internal() local
14525 size_t const maxNbSeq = blockSize / divider; in ZSTD_resetCCtx_internal()
14526 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_resetCCtx_internal()
14529 size_t const buffOutSize = (zbuff==ZSTDb_buffered) ? ZSTD_compressBound(blockSize)+1 : 0; in ZSTD_resetCCtx_internal()
14530 size_t const buffInSize = (zbuff==ZSTDb_buffered) ? windowSize + blockSize : 0; in ZSTD_resetCCtx_internal()
14532 size_t const maxNbLdmSeq = ZSTD_ldm_getMaxNbSeq(params.ldmParams, blockSize); in ZSTD_resetCCtx_internal()
14565 DEBUGLOG(4, "windowSize: %zu - blockSize: %zu", windowSize, blockSize); in ZSTD_resetCCtx_internal()
14604 zc->blockSize = blockSize; in ZSTD_resetCCtx_internal()
14615 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()
14616 zc->seqStore.maxNbLit = blockSize; in ZSTD_resetCCtx_internal()
15669 size_t blockSize = cctx->blockSize; in ZSTD_compress_frameChunk() local
15678 DEBUGLOG(5, "ZSTD_compress_frameChunk (blockSize=%u)", (unsigned)blockSize); in ZSTD_compress_frameChunk()
15684 U32 const lastBlock = lastFrameChunk & (blockSize >= remaining); in ZSTD_compress_frameChunk()
15689 if (remaining < blockSize) blockSize = remaining; in ZSTD_compress_frameChunk()
15692 ms, &cctx->workspace, &cctx->appliedParams, ip, ip + blockSize); in ZSTD_compress_frameChunk()
15693 …ZSTD_checkDictValidity(&ms->window, ip + blockSize, maxDist, &ms->loadedDictEnd, &ms->dictMatchSta… in ZSTD_compress_frameChunk()
15700 … cSize = ZSTD_compressBlock_targetCBlockSize(cctx, op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
15703 assert(cSize <= blockSize + ZSTD_blockHeaderSize); in ZSTD_compress_frameChunk()
15707 ip, blockSize, 1 /* frame */); in ZSTD_compress_frameChunk()
15711 cSize = ZSTD_noCompressBlock(op, dstCapacity, ip, blockSize, lastBlock); in ZSTD_compress_frameChunk()
15715 lastBlock + (((U32)bt_rle)<<1) + (U32)(blockSize << 3) : in ZSTD_compress_frameChunk()
15723 ip += blockSize; in ZSTD_compress_frameChunk()
15724 assert(remaining >= blockSize); in ZSTD_compress_frameChunk()
15725 remaining -= blockSize; in ZSTD_compress_frameChunk()
15853 DEBUGLOG(5, "ZSTD_compressContinue_internal (blockSize=%u)", (unsigned)cctx->blockSize); in ZSTD_compressContinue_internal()
16745 cctx->inBuffTarget = cctx->blockSize in ZSTD_resetCStream_internal()
16746 …+ (cctx->blockSize == pledgedSrcSize); /* for small input: avoid automatic flush on reaching end… in ZSTD_resetCStream_internal()
16877 if (hintInSize==0) hintInSize = cctx->blockSize; in ZSTD_nextInputSizeHint()
16966 zcs->inBuffTarget = zcs->inBuffPos + zcs->blockSize; in ZSTD_compressStream_generic()
16968 zcs->inBuffPos = 0, zcs->inBuffTarget = zcs->blockSize; in ZSTD_compressStream_generic()
25073 size_t ZSTD_insertBlock(ZSTD_DCtx* dctx, const void* blockStart, size_t blockSize) in ZSTD_insertBlock() argument
25075 DEBUGLOG(5, "ZSTD_insertBlock: %u bytes", (unsigned)blockSize); in ZSTD_insertBlock()
25077 dctx->previousDstEnd = (const char*)blockStart + blockSize; in ZSTD_insertBlock()
25078 return blockSize; in ZSTD_insertBlock()
25990 size_t const blockSize = (size_t) MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_decodingBufferSize_min() local
25991 unsigned long long const neededRBSize = windowSize + blockSize + (WILDCOPY_OVERLENGTH * 2); in ZSTD_decodingBufferSize_min()
26001 size_t const blockSize = MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_estimateDStreamSize() local
26002 size_t const inBuffSize = blockSize; /* no block can be larger */ in ZSTD_estimateDStreamSize()