|
size_t | ZSTD_buildBlockEntropyStats (const seqStore_t *seqStorePtr, const ZSTD_entropyCTables_t *prevEntropy, ZSTD_entropyCTables_t *nextEntropy, const ZSTD_CCtx_params *cctxParams, ZSTD_entropyCTablesMetadata_t *entropyMetadata, void *workspace, size_t wkspSize) |
|
ZSTD_blockCompressor | ZSTD_selectBlockCompressor (ZSTD_strategy strat, ZSTD_paramSwitch_e rowMatchfinderMode, ZSTD_dictMode_e dictMode) |
|
MEM_STATIC U32 | ZSTD_LLcode (U32 litLength) |
|
MEM_STATIC U32 | ZSTD_MLcode (U32 mlBase) |
|
MEM_STATIC int | ZSTD_cParam_withinBounds (ZSTD_cParameter cParam, int value) |
|
MEM_STATIC size_t | ZSTD_noCompressBlock (void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 lastBlock) |
|
MEM_STATIC size_t | ZSTD_rleCompressBlock (void *dst, size_t dstCapacity, BYTE src, size_t srcSize, U32 lastBlock) |
|
MEM_STATIC size_t | ZSTD_minGain (size_t srcSize, ZSTD_strategy strat) |
|
MEM_STATIC int | ZSTD_literalsCompressionIsDisabled (const ZSTD_CCtx_params *cctxParams) |
|
HINT_INLINE UNUSED_ATTR void | ZSTD_storeSeq (seqStore_t *seqStorePtr, size_t litLength, const BYTE *literals, const BYTE *litLimit, U32 offBase, size_t matchLength) |
|
MEM_STATIC void | ZSTD_updateRep (U32 rep[ZSTD_REP_NUM], U32 const offBase, U32 const ll0) |
|
MEM_STATIC repcodes_t | ZSTD_newRep (U32 const rep[ZSTD_REP_NUM], U32 const offBase, U32 const ll0) |
|
MEM_STATIC size_t | ZSTD_count (const BYTE *pIn, const BYTE *pMatch, const BYTE *const pInLimit) |
|
MEM_STATIC size_t | ZSTD_count_2segments (const BYTE *ip, const BYTE *match, const BYTE *iEnd, const BYTE *mEnd, const BYTE *iStart) |
|
MEM_STATIC size_t | ZSTD_hash3Ptr (const void *ptr, U32 h) |
|
MEM_STATIC size_t | ZSTD_hash3PtrS (const void *ptr, U32 h, U32 s) |
|
MEM_STATIC FORCE_INLINE_ATTR size_t | ZSTD_hashPtr (const void *p, U32 hBits, U32 mls) |
|
MEM_STATIC FORCE_INLINE_ATTR size_t | ZSTD_hashPtrSalted (const void *p, U32 hBits, U32 mls, const U64 hashSalt) |
|
MEM_STATIC U64 | ZSTD_rollingHash_compute (void const *buf, size_t size) |
|
MEM_STATIC U64 | ZSTD_rollingHash_primePower (U32 length) |
|
MEM_STATIC U64 | ZSTD_rollingHash_rotate (U64 hash, BYTE toRemove, BYTE toAdd, U64 primePower) |
|
MEM_STATIC void | ZSTD_window_clear (ZSTD_window_t *window) |
|
MEM_STATIC U32 | ZSTD_window_isEmpty (ZSTD_window_t const window) |
|
MEM_STATIC U32 | ZSTD_window_hasExtDict (ZSTD_window_t const window) |
|
MEM_STATIC ZSTD_dictMode_e | ZSTD_matchState_dictMode (const ZSTD_matchState_t *ms) |
|
MEM_STATIC U32 | ZSTD_window_canOverflowCorrect (ZSTD_window_t const window, U32 cycleLog, U32 maxDist, U32 loadedDictEnd, void const *src) |
|
MEM_STATIC U32 | ZSTD_window_needOverflowCorrection (ZSTD_window_t const window, U32 cycleLog, U32 maxDist, U32 loadedDictEnd, void const *src, void const *srcEnd) |
|
MEM_STATIC ZSTD_ALLOW_POINTER_OVERFLOW_ATTR U32 | ZSTD_window_correctOverflow (ZSTD_window_t *window, U32 cycleLog, U32 maxDist, void const *src) |
|
MEM_STATIC void | ZSTD_window_enforceMaxDist (ZSTD_window_t *window, const void *blockEnd, U32 maxDist, U32 *loadedDictEndPtr, const ZSTD_matchState_t **dictMatchStatePtr) |
|
MEM_STATIC void | ZSTD_checkDictValidity (const ZSTD_window_t *window, const void *blockEnd, U32 maxDist, U32 *loadedDictEndPtr, const ZSTD_matchState_t **dictMatchStatePtr) |
|
MEM_STATIC void | ZSTD_window_init (ZSTD_window_t *window) |
|
MEM_STATIC ZSTD_ALLOW_POINTER_OVERFLOW_ATTR U32 | ZSTD_window_update (ZSTD_window_t *window, void const *src, size_t srcSize, int forceNonContiguous) |
|
MEM_STATIC U32 | ZSTD_getLowestMatchIndex (const ZSTD_matchState_t *ms, U32 curr, unsigned windowLog) |
|
MEM_STATIC U32 | ZSTD_getLowestPrefixIndex (const ZSTD_matchState_t *ms, U32 curr, unsigned windowLog) |
|
MEM_STATIC void | ZSTD_writeTaggedIndex (U32 *const hashTable, size_t hashAndTag, U32 index) |
|
MEM_STATIC int | ZSTD_comparePackedTags (size_t packedTag1, size_t packedTag2) |
|
size_t | ZSTD_loadCEntropy (ZSTD_compressedBlockState_t *bs, void *workspace, const void *const dict, size_t dictSize) |
|
void | ZSTD_reset_compressedBlockState (ZSTD_compressedBlockState_t *bs) |
|
ZSTD_compressionParameters | ZSTD_getCParamsFromCCtxParams (const ZSTD_CCtx_params *CCtxParams, U64 srcSizeHint, size_t dictSize, ZSTD_cParamMode_e mode) |
|
size_t | ZSTD_initCStream_internal (ZSTD_CStream *zcs, const void *dict, size_t dictSize, const ZSTD_CDict *cdict, const ZSTD_CCtx_params *params, unsigned long long pledgedSrcSize) |
|
void | ZSTD_resetSeqStore (seqStore_t *ssPtr) |
|
ZSTD_compressionParameters | ZSTD_getCParamsFromCDict (const ZSTD_CDict *cdict) |
|
size_t | ZSTD_compressBegin_advanced_internal (ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_dictContentType_e dictContentType, ZSTD_dictTableLoadMethod_e dtlm, const ZSTD_CDict *cdict, const ZSTD_CCtx_params *params, unsigned long long pledgedSrcSize) |
|
size_t | ZSTD_compress_advanced_internal (ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, const ZSTD_CCtx_params *params) |
|
size_t | ZSTD_writeLastEmptyBlock (void *dst, size_t dstCapacity) |
|
void | ZSTD_referenceExternalSequences (ZSTD_CCtx *cctx, rawSeq *seq, size_t nbSeq) |
|
U32 | ZSTD_cycleLog (U32 hashLog, ZSTD_strategy strat) |
|
void | ZSTD_CCtx_trace (ZSTD_CCtx *cctx, size_t extraCSize) |
|
size_t | ZSTD_copySequencesToSeqStoreExplicitBlockDelim (ZSTD_CCtx *cctx, ZSTD_sequencePosition *seqPos, const ZSTD_Sequence *const inSeqs, size_t inSeqsSize, const void *src, size_t blockSize, ZSTD_paramSwitch_e externalRepSearch) |
|
size_t | ZSTD_copySequencesToSeqStoreNoBlockDelim (ZSTD_CCtx *cctx, ZSTD_sequencePosition *seqPos, const ZSTD_Sequence *const inSeqs, size_t inSeqsSize, const void *src, size_t blockSize, ZSTD_paramSwitch_e externalRepSearch) |
|
MEM_STATIC int | ZSTD_hasExtSeqProd (const ZSTD_CCtx_params *params) |
|
size_t | ZSTD_compressBegin_usingCDict_deprecated (ZSTD_CCtx *cctx, const ZSTD_CDict *cdict) |
|
size_t | ZSTD_compressContinue_public (ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) |
|
size_t | ZSTD_compressEnd_public (ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) |
|
size_t | ZSTD_compressBlock_deprecated (ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) |
|
ZSTD_window_enforceMaxDist(): Updates lowLimit so that: (srcEnd - base) - lowLimit == maxDist + loadedDictEnd
It ensures index is valid as long as index >= lowLimit. This must be called before a block compression call.
loadedDictEnd is only defined if a dictionary is in use for current compression. As the name implies, loadedDictEnd represents the index at end of dictionary. The value lies within context's referential, it can be directly compared to blockEndIdx.
If loadedDictEndPtr is NULL, no dictionary is in use, and we use loadedDictEnd == 0. If loadedDictEndPtr is not NULL, we set it to zero after updating lowLimit. This is because dictionaries are allowed to be referenced fully as long as the last byte of the dictionary is in the window. Once input has progressed beyond window size, dictionary cannot be referenced anymore.
In normal dict mode, the dictionary lies between lowLimit and dictLimit. In dictMatchState mode, lowLimit and dictLimit are the same, and the dictionary is below them. forceWindow and dictMatchState are therefore incompatible.