Lines Matching refs:size_t

41 static size_t ZSTD_compressSubBlock_literal(const HUF_CElt* hufTable,  in ZSTD_compressSubBlock_literal()
43 const BYTE* literals, size_t litSize, in ZSTD_compressSubBlock_literal()
44 void* dst, size_t dstSize, in ZSTD_compressSubBlock_literal()
47 size_t const header = writeEntropy ? 200 : 0; in ZSTD_compressSubBlock_literal()
48 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header)); in ZSTD_compressSubBlock_literal()
54 size_t cLitSize = 0; in ZSTD_compressSubBlock_literal()
80 …{ const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, oend-op, literals, litSize,… in ZSTD_compressSubBlock_literal()
94 if (lhSize < (size_t)(3 + (cLitSize >= 1 KB) + (cLitSize >= 16 KB))) { in ZSTD_compressSubBlock_literal()
129 static size_t ZSTD_seqDecompressedSize(seqStore_t const* seqStore, const seqDef* sequences, size_t in ZSTD_seqDecompressedSize()
133 size_t matchLengthSum = 0; in ZSTD_seqDecompressedSize()
134 size_t litLengthSum = 0; in ZSTD_seqDecompressedSize()
159 static size_t ZSTD_compressSubBlock_sequences(const ZSTD_fseCTables_t* fseTables, in ZSTD_compressSubBlock_sequences()
161 const seqDef* sequences, size_t nbSeq, in ZSTD_compressSubBlock_sequences()
164 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_sequences()
207 { size_t const bitstreamSize = ZSTD_encodeSequences( in ZSTD_compressSubBlock_sequences()
259 static size_t ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, in ZSTD_compressSubBlock()
261 const seqDef* sequences, size_t nbSeq, in ZSTD_compressSubBlock()
262 const BYTE* literals, size_t litSize, in ZSTD_compressSubBlock()
265 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock()
276 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock()
283 { size_t cSeqSize = ZSTD_compressSubBlock_sequences(&entropy->fse, in ZSTD_compressSubBlock()
295 { size_t cSize = (op-ostart)-ZSTD_blockHeaderSize; in ZSTD_compressSubBlock()
302 static size_t ZSTD_estimateSubBlockSize_literal(const BYTE* literals, size_t litSize, in ZSTD_estimateSubBlockSize_literal()
305 void* workspace, size_t wkspSize, in ZSTD_estimateSubBlockSize_literal()
310 size_t literalSectionHeaderSize = 3; /* Use hard coded size of 3 bytes */ in ZSTD_estimateSubBlockSize_literal()
315size_t const largest = HIST_count_wksp (countWksp, &maxSymbolValue, (const BYTE*)literals, litSize… in ZSTD_estimateSubBlockSize_literal()
317 …{ size_t cLitSizeEstimate = HUF_estimateCompressedSize((const HUF_CElt*)huf->CTable, countWksp, … in ZSTD_estimateSubBlockSize_literal()
325 static size_t ZSTD_estimateSubBlockSize_symbolType(symbolEncodingType_e type, in ZSTD_estimateSubBlockSize_symbolType()
327 size_t nbSeq, const FSE_CTable* fseCTable, in ZSTD_estimateSubBlockSize_symbolType()
330 void* workspace, size_t wkspSize) in ZSTD_estimateSubBlockSize_symbolType()
336 size_t cSymbolTypeSizeEstimateInBits = 0; in ZSTD_estimateSubBlockSize_symbolType()
360 static size_t ZSTD_estimateSubBlockSize_sequences(const BYTE* ofCodeTable, in ZSTD_estimateSubBlockSize_sequences()
363 size_t nbSeq, in ZSTD_estimateSubBlockSize_sequences()
366 void* workspace, size_t wkspSize, in ZSTD_estimateSubBlockSize_sequences()
369 size_t const sequencesSectionHeaderSize = 3; /* Use hard coded size of 3 bytes */ in ZSTD_estimateSubBlockSize_sequences()
370 size_t cSeqSizeEstimate = 0; in ZSTD_estimateSubBlockSize_sequences()
388 static size_t ZSTD_estimateSubBlockSize(const BYTE* literals, size_t litSize, in ZSTD_estimateSubBlockSize()
392 size_t nbSeq, in ZSTD_estimateSubBlockSize()
395 void* workspace, size_t wkspSize, in ZSTD_estimateSubBlockSize()
397 size_t cSizeEstimate = 0; in ZSTD_estimateSubBlockSize()
425 static size_t ZSTD_compressSubBlock_multi(const seqStore_t* seqStorePtr, in ZSTD_compressSubBlock_multi()
430 void* dst, size_t dstCapacity, in ZSTD_compressSubBlock_multi()
431 const void* src, size_t srcSize, in ZSTD_compressSubBlock_multi()
433 void* workspace, size_t wkspSize) in ZSTD_compressSubBlock_multi()
449 size_t targetCBlockSize = cctxParams->targetCBlockSize; in ZSTD_compressSubBlock_multi()
450 size_t litSize, seqCount; in ZSTD_compressSubBlock_multi()
461 size_t cBlockSizeEstimate = 0; in ZSTD_compressSubBlock_multi()
472 assert(litSize <= (size_t)(lend - lp)); in ZSTD_compressSubBlock_multi()
473 litSize = (size_t)(lend - lp); in ZSTD_compressSubBlock_multi()
486 …const size_t decompressedSize = ZSTD_seqDecompressedSize(seqStorePtr, sp, seqCount, litSize, lastS… in ZSTD_compressSubBlock_multi()
487 const size_t cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi()
531 size_t const cSize = ZSTD_noCompressBlock(op, oend - op, ip, iend - ip, lastBlock); in ZSTD_compressSubBlock_multi()
532 …DEBUGLOG(5, "ZSTD_compressSubBlock_multi last sub-block uncompressed, %zu bytes", (size_t)(iend - … in ZSTD_compressSubBlock_multi()
551 size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc, in ZSTD_compressSuperBlock()
552 void* dst, size_t dstCapacity, in ZSTD_compressSuperBlock()
553 void const* src, size_t srcSize, in ZSTD_compressSuperBlock()