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
139 #define LZ4HC_DICTIONARY_LOGSIZE 17
140 #define LZ4HC_MAXD (1<<LZ4HC_DICTIONARY_LOGSIZE)
141 #define LZ4HC_MAXD_MASK (LZ4HC_MAXD - 1)
143 #define LZ4HC_HASH_LOG 15
144 #define LZ4HC_HASHTABLESIZE (1 << LZ4HC_HASH_LOG)
145 #define LZ4HC_HASH_MASK (LZ4HC_HASHTABLESIZE - 1)
148 #if defined(__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) )
157 const uint8_t* dictBase;
161 uint32_t nextToUpdate;
185 #define LZ4_STREAMHCSIZE (4*LZ4HC_HASHTABLESIZE + 2*LZ4HC_MAXD + 56)
186 #define LZ4_STREAMHCSIZE_SIZET (LZ4_STREAMHCSIZE / sizeof(size_t))
209 LZ4_DEPRECATED("use LZ4_compress_HC() instead")
int LZ4_compressHC_limitedOutput (const
char* source,
char* dest,
int inputSize,
int maxOutputSize);
211 LZ4_DEPRECATED("use LZ4_compress_HC() instead")
int LZ4_compressHC2_limitedOutput (const
char* source,
char* dest,
int inputSize,
int maxOutputSize,
int compressionLevel);
215 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);
224 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);
229 #if defined (__cplusplus)
const unsigned char * base
Definition: lz4hc.h:173
char int int maxOutputSize
Definition: lz4.h:441
#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)
LZ4LIB_API int LZ4_compress_HCStatic(const char *src, char *dst, int srcSize, int dstCapacity, int compressionLevel)
char * dst
Definition: lz4.h:464
unsigned char * inputBuffer
Definition: lz4hc.h:175
LZ4LIB_API void LZ4_resetStreamHC(LZ4_streamHC_t *streamHCPtr, int compressionLevel)
const unsigned char * dictBase
Definition: lz4hc.h:174
char int int maxDstSize
Definition: lz4.h:464
#define LZ4HC_MAXD
Definition: lz4hc.h:140
unsigned int lowLimit
Definition: lz4hc.h:177
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:210
LZ4LIB_API int LZ4_loadDictHC(LZ4_streamHC_t *streamHCPtr, const char *dictionary, int dictSize)
char * inputBuffer
Definition: lz4.h:460
LZ4HC_CCtx_internal internal_donotuse
Definition: lz4hc.h:189
#define LZ4HC_HASHTABLESIZE
Definition: lz4hc.h:144
#define LZ4_DEPRECATED(message)
Definition: lz4.h:435
LZ4LIB_API int LZ4_sizeofStateHC(void)
const char * source
Definition: lz4.h:442
unsigned int compressionLevel
Definition: lz4hc.h:180
const unsigned char * end
Definition: lz4hc.h:172
const char char int inputSize
Definition: lz4.h:442
LZ4LIB_API int LZ4_freeStreamHC(LZ4_streamHC_t *streamHCPtr)
unsigned int nextToUpdate
Definition: lz4hc.h:178
#define LZ4_STREAMHCSIZE_SIZET
Definition: lz4hc.h:186
unsigned int dictLimit
Definition: lz4hc.h:176
size_t table[LZ4_STREAMHCSIZE_SIZET]
Definition: lz4hc.h:188
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:179
char * dest
Definition: lz4.h:440