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 11
50 #define LZ4HC_CLEVEL_MAX 12
134 #define LZ4HC_DICTIONARY_LOGSIZE 17
135 #define LZ4HC_MAXD (1<<LZ4HC_DICTIONARY_LOGSIZE)
136 #define LZ4HC_MAXD_MASK (LZ4HC_MAXD - 1)
138 #define LZ4HC_HASH_LOG 15
139 #define LZ4HC_HASHTABLESIZE (1 << LZ4HC_HASH_LOG)
140 #define LZ4HC_HASH_MASK (LZ4HC_HASHTABLESIZE - 1)
143 #if defined(__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) )
152 const uint8_t* dictBase;
156 uint32_t nextToUpdate;
180 #define LZ4_STREAMHCSIZE (4*LZ4HC_HASHTABLESIZE + 2*LZ4HC_MAXD + 56)
181 #define LZ4_STREAMHCSIZE_SIZET (LZ4_STREAMHCSIZE / sizeof(size_t))
206 LZ4_DEPRECATED("use
LZ4_compress_HC() instead")
int LZ4_compressHC2_limitedOutput (const
char* source,
char* dest,
int inputSize,
int maxOutputSize,
int compressionLevel);
210 LZ4_DEPRECATED("use
LZ4_compress_HC_extStateHC() instead")
int LZ4_compressHC2_limitedOutput_withStateHC(
void* state, const
char* source,
char* dest,
int inputSize,
int maxOutputSize,
int compressionLevel);
219 LZ4_DEPRECATED("use
LZ4_compress_HC_continue() instead")
int LZ4_compressHC2_limitedOutput_continue (
void* LZ4HC_Data, const
char* source,
char* dest,
int inputSize,
int maxOutputSize,
int compressionLevel);
224 #if defined (__cplusplus)
const unsigned char * base
Definition: lz4hc.h:168
char int int maxOutputSize
Definition: lz4.h:435
LZ4LIB_API int LZ4_compress_HC(const char *src, char *dst, int srcSize, int dstCapacity, int compressionLevel)
#define LZ4LIB_API
Introduction.
Definition: lz4.h:81
LZ4LIB_API int LZ4_compress_HC_continue(LZ4_streamHC_t *streamHCPtr, const char *src, char *dst, int srcSize, int maxDstSize)
char * dst
Definition: lz4.h:458
unsigned char * inputBuffer
Definition: lz4hc.h:170
LZ4LIB_API void LZ4_resetStreamHC(LZ4_streamHC_t *streamHCPtr, int compressionLevel)
const unsigned char * dictBase
Definition: lz4hc.h:169
char int int maxDstSize
Definition: lz4.h:458
#define LZ4HC_MAXD
Definition: lz4hc.h:135
unsigned int lowLimit
Definition: lz4hc.h:172
LZ4LIB_API int LZ4_compress_HC_extStateHC(void *state, const char *src, char *dst, int srcSize, int maxDstSize, int compressionLevel)
char int int compressionLevel
Definition: lz4hc.h:205
LZ4LIB_API int LZ4_loadDictHC(LZ4_streamHC_t *streamHCPtr, const char *dictionary, int dictSize)
char * inputBuffer
Definition: lz4.h:454
LZ4HC_CCtx_internal internal_donotuse
Definition: lz4hc.h:184
#define LZ4HC_HASHTABLESIZE
Definition: lz4hc.h:139
#define LZ4_DEPRECATED(message)
Definition: lz4.h:429
LZ4LIB_API int LZ4_sizeofStateHC(void)
const char * source
Definition: lz4.h:436
unsigned int compressionLevel
Definition: lz4hc.h:175
const unsigned char * end
Definition: lz4hc.h:167
const char char int inputSize
Definition: lz4.h:436
LZ4LIB_API int LZ4_freeStreamHC(LZ4_streamHC_t *streamHCPtr)
unsigned int nextToUpdate
Definition: lz4hc.h:173
#define LZ4_STREAMHCSIZE_SIZET
Definition: lz4hc.h:181
unsigned int dictLimit
Definition: lz4hc.h:171
size_t table[LZ4_STREAMHCSIZE_SIZET]
Definition: lz4hc.h:183
LZ4LIB_API LZ4_streamHC_t * LZ4_createStreamHC(void)
LZ4LIB_API int LZ4_saveDictHC(LZ4_streamHC_t *streamHCPtr, char *safeBuffer, int maxDictSize)
unsigned int searchNum
Definition: lz4hc.h:174
char * dest
Definition: lz4.h:434