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,
377 int compressionLevel);
408 #if defined (__cplusplus) LZ4LIB_API LZ4_streamHC_t * LZ4_initStreamHC(void *buffer, size_t size)
int LZ4_freeHC(void *LZ4HC_Data)
LZ4LIB_API int LZ4_compress_HC(const char *src, char *dst, int srcSize, int dstCapacity, int compressionLevel)
int LZ4_compressHC2_withStateHC(void *state, const char *src, char *dst, int srcSize, int cLevel)
int LZ4_compressHC(const char *src, char *dst, int srcSize)
int LZ4_compressHC_withStateHC(void *state, const char *src, char *dst, int srcSize)
int LZ4_compress_HC_extStateHC_fastReset(void *state, const char *src, char *dst, int srcSize, int dstCapacity, int compressionLevel)
LZ4LIB_API int LZ4_compress_HC_continue(LZ4_streamHC_t *streamHCPtr, const char *src, char *dst, int srcSize, int maxDstSize)
void LZ4_setCompressionLevel(LZ4_streamHC_t *LZ4_streamHCPtr, int compressionLevel)
LZ4HC_CCtx_internal internal_donotuse
LZ4LIB_API void LZ4_resetStreamHC(LZ4_streamHC_t *streamHCPtr, int compressionLevel)
int LZ4_compressHC_limitedOutput_continue(LZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize, int maxDstSize)
int LZ4_compressHC2_continue(void *LZ4HC_Data, const char *src, char *dst, int srcSize, int cLevel)
#define LZ4_STREAMHCSIZE_VOIDP
char int int compressionLevel
int LZ4_compressHC_limitedOutput(const char *src, char *dst, int srcSize, int maxDstSize)
void * LZ4_createHC(const char *inputBuffer)
LZ4LIB_API int LZ4_loadDictHC(LZ4_streamHC_t *streamHCPtr, const char *dictionary, int dictSize)
void LZ4_attach_HC_dictionary(LZ4_streamHC_t *working_stream, const LZ4_streamHC_t *dictionary_stream)
int LZ4_compressHC2_limitedOutput_continue(void *LZ4HC_Data, const char *src, char *dst, int srcSize, int dstCapacity, int cLevel)
int LZ4_compressHC2_limitedOutput_withStateHC(void *state, const char *src, char *dst, int srcSize, int maxDstSize, int cLevel)
LZ4_DEPRECATED("use LZ4_compress_HC() instead") LZ4LIB_API int LZ4_compressHC(const char *source
#define LZ4HC_HASHTABLESIZE
int LZ4_resetStreamStateHC(void *state, char *inputBuffer)
void LZ4_favorDecompressionSpeed(LZ4_streamHC_t *LZ4_streamHCPtr, int favor)
table_core< false > table
LZ4_u16 chainTable[LZ4HC_MAXD]
const LZ4_byte * dictBase
LZ4LIB_API int LZ4_sizeofStateHC(void)
int LZ4_compressHC_continue(LZ4_streamHC_t *ctx, const char *src, char *dst, int srcSize)
LZ4LIB_API void LZ4_resetStreamHC_fast(LZ4_streamHC_t *streamHCPtr, int compressionLevel)
LZ4LIB_API int LZ4_compress_HC_extStateHC(void *stateHC, const char *src, char *dst, int srcSize, int maxDstSize, int compressionLevel)
LZ4_u32 hashTable[LZ4HC_HASHTABLESIZE]
LZ4LIB_API int LZ4_freeStreamHC(LZ4_streamHC_t *streamHCPtr)
char int int maxOutputSize
int LZ4_compressHC2_limitedOutput(const char *src, char *dst, int srcSize, int maxDstSize, int cLevel)
int LZ4_compressHC2(const char *src, char *dst, int srcSize, int cLevel)
int LZ4_sizeofStreamStateHC(void)
const LZ4HC_CCtx_internal * dictCtx
span_constexpr std::size_t size(span< T, Extent > const &spn)
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_compress_HC_destSize(void *stateHC, const char *src, char *dst, int *srcSizePtr, int targetDstSize, int compressionLevel)
char * LZ4_slideInputBufferHC(void *LZ4HC_Data)
LZ4LIB_API LZ4_streamHC_t * LZ4_createStreamHC(void)
int LZ4_compressHC_limitedOutput_withStateHC(void *state, const char *src, char *dst, int srcSize, int maxDstSize)
LZ4LIB_API int LZ4_saveDictHC(LZ4_streamHC_t *streamHCPtr, char *safeBuffer, int maxDictSize)