|
LZ4_FORCE_INLINE unsigned | LZ4HC_NbCommonBytes32 (U32 val) |
|
LZ4_FORCE_INLINE int | LZ4HC_countBack (const BYTE *const ip, const BYTE *const match, const BYTE *const iMin, const BYTE *const mMin) |
|
LZ4_FORCE_INLINE int | LZ4HC_encodeSequence (const BYTE **_ip, BYTE **_op, const BYTE **_anchor, int matchLength, int offset, limitedOutput_directive limit, BYTE *oend) |
|
LZ4HC_match_t | LZ4HC_searchExtDict (const BYTE *ip, U32 ipIndex, const BYTE *const iLowLimit, const BYTE *const iHighLimit, const LZ4HC_CCtx_internal *dictCtx, U32 gDictEndIndex, int currentBestML, int nbAttempts) |
|
LZ4_FORCE_INLINE void | LZ4MID_addPosition (U32 *hTable, U32 hValue, U32 index) |
|
LZ4_FORCE_INLINE void | LZ4HC_Insert (LZ4HC_CCtx_internal *hc4, const BYTE *ip) |
|
LZ4_FORCE_INLINE LZ4HC_match_t | LZ4HC_InsertAndGetWiderMatch (LZ4HC_CCtx_internal *const hc4, const BYTE *const ip, const BYTE *const iLowLimit, const BYTE *const iHighLimit, int longest, const int maxNbAttempts, const int patternAnalysis, const int chainSwap, const dictCtx_directive dict, const HCfavor_e favorDecSpeed) |
|
LZ4_FORCE_INLINE LZ4HC_match_t | LZ4HC_InsertAndFindBestMatch (LZ4HC_CCtx_internal *const hc4, const BYTE *const ip, const BYTE *const iLimit, const int maxNbAttempts, const int patternAnalysis, const dictCtx_directive dict) |
|
LZ4_FORCE_INLINE int | LZ4HC_compress_hashChain (LZ4HC_CCtx_internal *const ctx, const char *const src, char *const dst, int *srcSizePtr, int const maxOutputSize, int maxNbAttempts, const limitedOutput_directive limit, const dictCtx_directive dict) |
|
int | LZ4_sizeofStateHC (void) |
|
int | LZ4_compress_HC_extStateHC_fastReset (void *state, const char *src, char *dst, int srcSize, int dstCapacity, int compressionLevel) |
|
int | LZ4_compress_HC_extStateHC (void *state, const char *src, char *dst, int srcSize, int dstCapacity, int compressionLevel) |
|
int | LZ4_compress_HC (const char *src, char *dst, int srcSize, int dstCapacity, int compressionLevel) |
|
int | LZ4_compress_HC_destSize (void *state, const char *source, char *dest, int *sourceSizePtr, int targetDestSize, int cLevel) |
|
LZ4_streamHC_t * | LZ4_createStreamHC (void) |
|
int | LZ4_freeStreamHC (LZ4_streamHC_t *LZ4_streamHCPtr) |
|
LZ4_streamHC_t * | LZ4_initStreamHC (void *buffer, size_t size) |
|
void | LZ4_resetStreamHC (LZ4_streamHC_t *LZ4_streamHCPtr, int compressionLevel) |
|
void | LZ4_resetStreamHC_fast (LZ4_streamHC_t *LZ4_streamHCPtr, int compressionLevel) |
|
void | LZ4_setCompressionLevel (LZ4_streamHC_t *LZ4_streamHCPtr, int compressionLevel) |
|
void | LZ4_favorDecompressionSpeed (LZ4_streamHC_t *LZ4_streamHCPtr, int favor) |
|
int | LZ4_loadDictHC (LZ4_streamHC_t *LZ4_streamHCPtr, const char *dictionary, int dictSize) |
|
void | LZ4_attach_HC_dictionary (LZ4_streamHC_t *working_stream, const LZ4_streamHC_t *dictionary_stream) |
|
int | LZ4_compress_HC_continue (LZ4_streamHC_t *LZ4_streamHCPtr, const char *src, char *dst, int srcSize, int dstCapacity) |
|
int | LZ4_compress_HC_continue_destSize (LZ4_streamHC_t *LZ4_streamHCPtr, const char *src, char *dst, int *srcSizePtr, int targetDestSize) |
|
int | LZ4_saveDictHC (LZ4_streamHC_t *LZ4_streamHCPtr, char *safeBuffer, int dictSize) |
|
LZ4_FORCE_INLINE int | LZ4HC_literalsPrice (int const litlen) |
|
LZ4_FORCE_INLINE int | LZ4HC_sequencePrice (int litlen, int mlen) |
|
LZ4_FORCE_INLINE LZ4HC_match_t | LZ4HC_FindLongerMatch (LZ4HC_CCtx_internal *const ctx, const BYTE *ip, const BYTE *const iHighLimit, int minLen, int nbSearches, const dictCtx_directive dict, const HCfavor_e favorDecSpeed) |
|
int | LZ4_compressHC (const char *src, char *dst, int srcSize) |
|
int | LZ4_compressHC_limitedOutput (const char *src, char *dst, int srcSize, int maxDstSize) |
|
int | LZ4_compressHC2 (const char *src, char *dst, int srcSize, int cLevel) |
|
int | LZ4_compressHC2_limitedOutput (const char *src, char *dst, int srcSize, int maxDstSize, int cLevel) |
|
int | LZ4_compressHC_withStateHC (void *state, const char *src, char *dst, int srcSize) |
|
int | LZ4_compressHC_limitedOutput_withStateHC (void *state, const char *src, char *dst, int srcSize, int maxDstSize) |
|
int | LZ4_compressHC2_withStateHC (void *state, const char *src, char *dst, int srcSize, int cLevel) |
|
int | LZ4_compressHC2_limitedOutput_withStateHC (void *state, const char *src, char *dst, int srcSize, int maxDstSize, int cLevel) |
|
int | LZ4_compressHC_continue (LZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize) |
|
int | LZ4_compressHC_limitedOutput_continue (LZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize, int maxDstSize) |
|
int | LZ4_sizeofStreamStateHC (void) |
|
int | LZ4_resetStreamStateHC (void *state, char *inputBuffer) |
|
void * | LZ4_createHC (const char *inputBuffer) |
|
int | LZ4_freeHC (void *LZ4HC_Data) |
|
int | LZ4_compressHC2_continue (void *LZ4HC_Data, const char *src, char *dst, int srcSize, int cLevel) |
|
int | LZ4_compressHC2_limitedOutput_continue (void *LZ4HC_Data, const char *src, char *dst, int srcSize, int dstCapacity, int cLevel) |
|
char * | LZ4_slideInputBufferHC (void *LZ4HC_Data) |
|
LZ4_attach_HC_dictionary() : stable since v1.10.0 This API allows for the efficient re-use of a static dictionary many times.
Rather than re-loading the dictionary buffer into a working context before each compression, or copying a pre-loaded dictionary's LZ4_streamHC_t into a working LZ4_streamHC_t, this function introduces a no-copy setup mechanism, in which the working stream references the dictionary stream in-place.
Several assumptions are made about the state of the dictionary stream. Currently, only streams which have been prepared by LZ4_loadDictHC() should be expected to work.
Alternatively, the provided dictionary stream pointer may be NULL, in which case any existing dictionary stream is unset.
A dictionary should only be attached to a stream without any history (i.e., a stream that has just been reset).
The dictionary will remain attached to the working stream only for the current stream session. Calls to LZ4_resetStreamHC(_fast) will remove the dictionary context association from the working stream. The dictionary stream (and source buffer) must remain in-place / accessible / unchanged through the lifetime of the stream session.