Lines Matching refs:size_t
49 size_t dictSize;
56 size_t dictSize;
104 size_t maxNbSeq;
105 size_t maxNbLit;
155 size_t hufDesSize;
168 size_t fseTablesSize;
169 …size_t lastCountSize; /* This is to account for bug in 1.3.4. More detail in ZSTD_entropyCompressS…
180 size_t ZSTD_buildBlockEntropyStats(
186 void* workspace, size_t wkspSize);
205 size_t pos; /* The index in seq where reading stopped. pos <= size. */
206 size_t posInSequence; /* The position within the sequence at seq[pos] where reading
208 size_t size; /* The number of sequences. <= capacity. */
209 size_t capacity; /* The capacity starting from `seq` pointer */
340 size_t splitIndices[LDM_BATCH_SIZE];
356 size_t seqIndex;
357 size_t maxSequences;
368 size_t targetCBlockSize; /* Tries to fit compressed block size to be around targetCBlockSize.
380 size_t jobSize;
412 size_t maxBlockSize;
478 size_t dictContentSize;
481 size_t blockSizeMax;
488 size_t staticSize;
496 size_t maxNbLdmSequences;
500 size_t tmpWkspSize;
507 size_t inBuffSize;
508 size_t inToCompress;
509 size_t inBuffPos;
510 size_t inBuffTarget;
512 size_t outBuffSize;
513 size_t outBuffContentSize;
514 size_t outBuffFlushedSize;
520 …size_t stableIn_notConsumed; /* nb bytes within stable input buffer that are said to be consumed b…
521 size_t expectedOutBufferSize;
537 size_t extSeqBufCapacity;
570 typedef size_t (*ZSTD_BlockCompressor_f) (
572 void const* src, size_t srcSize);
641 MEM_STATIC size_t
642 ZSTD_noCompressBlock(void* dst, size_t dstCapacity, const void* src, size_t srcSize, U32 lastBlock) in ZSTD_noCompressBlock()
653 MEM_STATIC size_t
654 ZSTD_rleCompressBlock(void* dst, size_t dstCapacity, BYTE src, size_t srcSize, U32 lastBlock) in ZSTD_rleCompressBlock()
669 MEM_STATIC size_t ZSTD_minGain(size_t srcSize, ZSTD_strategy strat) in ZSTD_minGain()
728 size_t litLength, in ZSTD_storeSeqOnly()
730 size_t matchLength) in ZSTD_storeSeqOnly()
732 assert((size_t)(seqStorePtr->sequences - seqStorePtr->sequencesStart) < seqStorePtr->maxNbSeq); in ZSTD_storeSeqOnly()
749 { size_t const mlBase = matchLength - MINMATCH; in ZSTD_storeSeqOnly()
769 size_t litLength, const BYTE* literals, const BYTE* litLimit, in ZSTD_storeSeq()
771 size_t matchLength) in ZSTD_storeSeq()
783 assert((size_t)(seqStorePtr->sequences - seqStorePtr->sequencesStart) < seqStorePtr->maxNbSeq); in ZSTD_storeSeq()
846 MEM_STATIC size_t ZSTD_count(const BYTE* pIn, const BYTE* pMatch, const BYTE* const pInLimit) in ZSTD_count()
849 const BYTE* const pInLoopLimit = pInLimit - (sizeof(size_t)-1); in ZSTD_count()
852 { size_t const diff = MEM_readST(pMatch) ^ MEM_readST(pIn); in ZSTD_count()
854 pIn+=sizeof(size_t); pMatch+=sizeof(size_t); in ZSTD_count()
856 size_t const diff = MEM_readST(pMatch) ^ MEM_readST(pIn); in ZSTD_count()
857 if (!diff) { pIn+=sizeof(size_t); pMatch+=sizeof(size_t); continue; } in ZSTD_count()
859 return (size_t)(pIn - pStart); in ZSTD_count()
864 return (size_t)(pIn - pStart); in ZSTD_count()
871 MEM_STATIC size_t
876 size_t const matchLength = ZSTD_count(ip, match, vEnd); in ZSTD_count_2segments()
892 MEM_STATIC size_t ZSTD_hash3Ptr(const void* ptr, U32 h) { return ZSTD_hash3(MEM_readLE32(ptr), h, 0… in ZSTD_hash3Ptr()
893 MEM_STATIC size_t ZSTD_hash3PtrS(const void* ptr, U32 h, U32 s) { return ZSTD_hash3(MEM_readLE32(pt… in ZSTD_hash3PtrS()
897 static size_t ZSTD_hash4Ptr(const void* ptr, U32 h) { return ZSTD_hash4(MEM_readLE32(ptr), h, 0); } in ZSTD_hash4Ptr()
898 static size_t ZSTD_hash4PtrS(const void* ptr, U32 h, U32 s) { return ZSTD_hash4(MEM_readLE32(ptr), … in ZSTD_hash4PtrS()
901 static size_t ZSTD_hash5(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-40)) … in ZSTD_hash5()
902 static size_t ZSTD_hash5Ptr(const void* p, U32 h) { return ZSTD_hash5(MEM_readLE64(p), h, 0); } in ZSTD_hash5Ptr()
903 static size_t ZSTD_hash5PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash5(MEM_readLE64(p), h, s… in ZSTD_hash5PtrS()
906 static size_t ZSTD_hash6(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-48)) … in ZSTD_hash6()
907 static size_t ZSTD_hash6Ptr(const void* p, U32 h) { return ZSTD_hash6(MEM_readLE64(p), h, 0); } in ZSTD_hash6Ptr()
908 static size_t ZSTD_hash6PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash6(MEM_readLE64(p), h, s… in ZSTD_hash6PtrS()
911 static size_t ZSTD_hash7(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-56)) … in ZSTD_hash7()
912 static size_t ZSTD_hash7Ptr(const void* p, U32 h) { return ZSTD_hash7(MEM_readLE64(p), h, 0); } in ZSTD_hash7Ptr()
913 static size_t ZSTD_hash7PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash7(MEM_readLE64(p), h, s… in ZSTD_hash7PtrS()
916 static size_t ZSTD_hash8(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u) * prime8byte… in ZSTD_hash8()
917 static size_t ZSTD_hash8Ptr(const void* p, U32 h) { return ZSTD_hash8(MEM_readLE64(p), h, 0); } in ZSTD_hash8Ptr()
918 static size_t ZSTD_hash8PtrS(const void* p, U32 h, U64 s) { return ZSTD_hash8(MEM_readLE64(p), h, s… in ZSTD_hash8PtrS()
922 size_t ZSTD_hashPtr(const void* p, U32 hBits, U32 mls) in ZSTD_hashPtr()
940 size_t ZSTD_hashPtrSalted(const void* p, U32 hBits, U32 mls, const U64 hashSalt) { in ZSTD_hashPtrSalted()
976 static U64 ZSTD_rollingHash_append(U64 hash, void const* buf, size_t size) in ZSTD_rollingHash_append()
979 size_t pos; in ZSTD_rollingHash_append()
990 MEM_STATIC U64 ZSTD_rollingHash_compute(void const* buf, size_t size) in ZSTD_rollingHash_compute()
1035 size_t const endT = (size_t)(window->nextSrc - window->base); in ZSTD_window_clear()
1347 const void* src, size_t srcSize, in ZSTD_window_update()
1360 size_t const distanceFromBase = (size_t)(window->nextSrc - window->base); in ZSTD_window_update()
1363 assert(distanceFromBase == (size_t)(U32)distanceFromBase); /* should never overflow */ in ZSTD_window_update()
1375 size_t const highInputIdx = (size_t)((ip + srcSize) - window->dictBase); in ZSTD_window_update()
1376 …U32 const lowLimitMax = (highInputIdx > (size_t)window->dictLimit) ? window->dictLimit : (U32)high… in ZSTD_window_update()
1479 MEM_STATIC void ZSTD_writeTaggedIndex(U32* const hashTable, size_t hashAndTag, U32 index) { in ZSTD_writeTaggedIndex()
1480 size_t const hash = hashAndTag >> ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_writeTaggedIndex()
1488 MEM_STATIC int ZSTD_comparePackedTags(size_t packedTag1, size_t packedTag2) { in ZSTD_comparePackedTags()
1504 size_t ZSTD_loadCEntropy(ZSTD_compressedBlockState_t* bs, void* workspace,
1505 const void* const dict, size_t dictSize);
1512 size_t posInSrc; /* Number of bytes given by sequences provided so far */
1516 size_t ZSTD_convertBlockSequences(ZSTD_CCtx* cctx,
1517 const ZSTD_Sequence* const inSeqs, size_t nbSequences,
1521 size_t nbSequences;
1522 size_t blockSize;
1523 size_t litSize;
1526 BlockSummary ZSTD_get1BlockSummary(const ZSTD_Sequence* seqs, size_t nbSeqs);
1539 … const ZSTD_CCtx_params* CCtxParams, U64 srcSizeHint, size_t dictSize, ZSTD_CParamMode_e mode);
1546 size_t ZSTD_initCStream_internal(ZSTD_CStream* zcs,
1547 const void* dict, size_t dictSize,
1559 size_t ZSTD_compressBegin_advanced_internal(ZSTD_CCtx* cctx,
1560 const void* dict, size_t dictSize,
1569 size_t ZSTD_compress_advanced_internal(ZSTD_CCtx* cctx,
1570 void* dst, size_t dstCapacity,
1571 const void* src, size_t srcSize,
1572 const void* dict,size_t dictSize,
1581 size_t ZSTD_writeLastEmptyBlock(void* dst, size_t dstCapacity);
1593 void ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
1602 void ZSTD_CCtx_trace(ZSTD_CCtx* cctx, size_t extraCSize);
1615 size_t ZSTD_compressBegin_usingCDict_deprecated(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict);
1617 size_t ZSTD_compressContinue_public(ZSTD_CCtx* cctx,
1618 void* dst, size_t dstCapacity,
1619 const void* src, size_t srcSize);
1621 size_t ZSTD_compressEnd_public(ZSTD_CCtx* cctx,
1622 void* dst, size_t dstCapacity,
1623 const void* src, size_t srcSize);
1625 size_t ZSTD_compressBlock_deprecated(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* sr…