34 #ifndef LZ4_HC_H_19834876238432
35 #define LZ4_HC_H_19834876238432
37 #if defined (__cplusplus)
47 #define LZ4HC_CLEVEL_MIN 3
48 #define LZ4HC_CLEVEL_DEFAULT 9
49 #define LZ4HC_CLEVEL_OPT_MIN 10
50 #define LZ4HC_CLEVEL_MAX 12
92 const char*
src,
char*
dst,
93 int* srcSizePtr,
int targetDstSize,
159 const char*
src,
char*
dst,
173 const char*
src,
char*
dst,
174 int* srcSizePtr,
int targetDstSize);
192 #define LZ4HC_DICTIONARY_LOGSIZE 16
193 #define LZ4HC_MAXD (1<<LZ4HC_DICTIONARY_LOGSIZE)
194 #define LZ4HC_MAXD_MASK (LZ4HC_MAXD - 1)
196 #define LZ4HC_HASH_LOG 15
197 #define LZ4HC_HASHTABLESIZE (1 << LZ4HC_HASH_LOG)
198 #define LZ4HC_HASH_MASK (LZ4HC_HASHTABLESIZE - 1)
223 #define LZ4_STREAMHCSIZE 262200
224 #define LZ4_STREAMHCSIZE_VOIDP (LZ4_STREAMHCSIZE / sizeof(void*))
295 #if defined (__cplusplus)
310 #ifdef LZ4_HC_STATIC_LINKING_ONLY
311 #ifndef LZ4_HC_SLO_098092834
312 #define LZ4_HC_SLO_098092834
314 #define LZ4_STATIC_LINKING_ONLY
317 #if defined (__cplusplus)
375 const char*
src,
char*
dst,
408 #if defined (__cplusplus)
int LZ4_compressHC2_withStateHC(void *state, const char *src, char *dst, int srcSize, int cLevel)
void LZ4_favorDecompressionSpeed(LZ4_streamHC_t *LZ4_streamHCPtr, int favor)
void LZ4_attach_HC_dictionary(LZ4_streamHC_t *working_stream, const LZ4_streamHC_t *dictionary_stream)
int LZ4_compressHC_limitedOutput_continue(LZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize, int maxDstSize)
int LZ4_resetStreamStateHC(void *state, char *inputBuffer)
int LZ4_freeHC(void *LZ4HC_Data)
int LZ4_compressHC2_limitedOutput_continue(void *LZ4HC_Data, const char *src, char *dst, int srcSize, int dstCapacity, int cLevel)
int LZ4_compressHC2_continue(void *LZ4HC_Data, const char *src, char *dst, int srcSize, int cLevel)
void * LZ4_createHC(const char *inputBuffer)
int LZ4_sizeofStreamStateHC(void)
int LZ4_compressHC2(const char *src, char *dst, int srcSize, int cLevel)
int LZ4_compressHC_limitedOutput(const char *src, char *dst, int srcSize, int maxDstSize)
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)
char * LZ4_slideInputBufferHC(void *LZ4HC_Data)
int LZ4_compressHC2_limitedOutput_withStateHC(void *state, const char *src, char *dst, int srcSize, int maxDstSize, int cLevel)
int LZ4_compress_HC_extStateHC_fastReset(void *state, const char *src, char *dst, int srcSize, int dstCapacity, int compressionLevel)
void LZ4_setCompressionLevel(LZ4_streamHC_t *LZ4_streamHCPtr, int compressionLevel)
int LZ4_compressHC_continue(LZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize)
int LZ4_compressHC2_limitedOutput(const char *src, char *dst, int srcSize, int maxDstSize, int cLevel)
int LZ4_compressHC(const char *src, char *dst, int srcSize)
#define LZ4_STREAMHCSIZE_VOIDP
char int int maxOutputSize
LZ4LIB_API int LZ4_sizeofStateHC(void)
LZ4LIB_API int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t *LZ4_streamHCPtr, const char *src, char *dst, int *srcSizePtr, int targetDstSize)
LZ4LIB_API int LZ4_loadDictHC(LZ4_streamHC_t *streamHCPtr, const char *dictionary, int dictSize)
#define LZ4HC_HASHTABLESIZE
LZ4LIB_API int LZ4_compress_HC_continue(LZ4_streamHC_t *streamHCPtr, const char *src, char *dst, int srcSize, int maxDstSize)
LZ4LIB_API int LZ4_saveDictHC(LZ4_streamHC_t *streamHCPtr, char *safeBuffer, int maxDictSize)
LZ4LIB_API int LZ4_freeStreamHC(LZ4_streamHC_t *streamHCPtr)
LZ4LIB_API void LZ4_resetStreamHC_fast(LZ4_streamHC_t *streamHCPtr, int compressionLevel)
LZ4LIB_API int LZ4_compress_HC(const char *src, char *dst, int srcSize, int dstCapacity, int compressionLevel)
LZ4LIB_API int LZ4_compress_HC_destSize(void *stateHC, const char *src, char *dst, int *srcSizePtr, int targetDstSize, int compressionLevel)
char int int compressionLevel
LZ4LIB_API void LZ4_resetStreamHC(LZ4_streamHC_t *streamHCPtr, int compressionLevel)
LZ4LIB_API LZ4_streamHC_t * LZ4_initStreamHC(void *buffer, size_t size)
LZ4LIB_API LZ4_streamHC_t * LZ4_createStreamHC(void)
LZ4_DEPRECATED("use LZ4_compress_HC() instead") LZ4LIB_API int LZ4_compressHC(const char *source
LZ4LIB_API int LZ4_compress_HC_extStateHC(void *stateHC, const char *src, char *dst, int srcSize, int maxDstSize, int compressionLevel)
const LZ4_byte * dictBase
const LZ4HC_CCtx_internal * dictCtx
LZ4_u32 hashTable[LZ4HC_HASHTABLESIZE]
LZ4_u16 chainTable[LZ4HC_MAXD]
void * table[LZ4_STREAMHCSIZE_VOIDP]
LZ4HC_CCtx_internal internal_donotuse