Go to the source code of this file.
|
LZ4LIB_API int | LZ4_compress_HC (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) |
|
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) |
|
LZ4LIB_API int | LZ4_compress_HC_extStateHC (void *stateHC, const char *src, char *dst, int srcSize, int maxDstSize, int compressionLevel) |
|
LZ4LIB_API LZ4_streamHC_t * | LZ4_createStreamHC (void) |
|
| LZ4_DEPRECATED ("use LZ4_compress_HC() instead") LZ4LIB_API int LZ4_compressHC(const char *source |
|
| LZ4_DEPRECATED ("use LZ4_compress_HC_continue() instead") LZ4LIB_API int LZ4_compressHC_continue(LZ4_streamHC_t *LZ4_streamHCPtr |
|
| LZ4_DEPRECATED ("use LZ4_compress_HC_extStateHC() instead") LZ4LIB_API int LZ4_compressHC_withStateHC(void *state |
|
| LZ4_DEPRECATED ("use LZ4_createStreamHC() instead") LZ4LIB_API void *LZ4_createHC(const char *inputBuffer) |
|
| LZ4_DEPRECATED ("use LZ4_freeStreamHC() instead") LZ4LIB_API int LZ4_freeHC(void *LZ4HC_Data) |
|
| LZ4_DEPRECATED ("use LZ4_initStreamHC() instead") LZ4LIB_API int LZ4_resetStreamStateHC(void *state |
|
| LZ4_DEPRECATED ("use LZ4_saveDictHC() instead") LZ4LIB_API char *LZ4_slideInputBufferHC(void *LZ4HC_Data) |
|
LZ4LIB_API int | LZ4_freeStreamHC (LZ4_streamHC_t *streamHCPtr) |
|
LZ4LIB_API LZ4_streamHC_t * | LZ4_initStreamHC (void *buffer, size_t size) |
|
LZ4LIB_API int | LZ4_loadDictHC (LZ4_streamHC_t *streamHCPtr, const char *dictionary, int dictSize) |
|
LZ4LIB_API void | LZ4_resetStreamHC (LZ4_streamHC_t *streamHCPtr, int compressionLevel) |
|
LZ4LIB_API void | LZ4_resetStreamHC_fast (LZ4_streamHC_t *streamHCPtr, int compressionLevel) |
|
LZ4LIB_API int | LZ4_saveDictHC (LZ4_streamHC_t *streamHCPtr, char *safeBuffer, int maxDictSize) |
|
LZ4LIB_API int | LZ4_sizeofStateHC (void) |
|
◆ LZ4_STREAMHC_MINSIZE
#define LZ4_STREAMHC_MINSIZE 262200 /* static size, for inter-version compatibility */ |
◆ LZ4HC_CLEVEL_DEFAULT
#define LZ4HC_CLEVEL_DEFAULT 9 |
◆ LZ4HC_CLEVEL_MAX
#define LZ4HC_CLEVEL_MAX 12 |
◆ LZ4HC_CLEVEL_MIN
#define LZ4HC_CLEVEL_MIN 3 |
◆ LZ4HC_CLEVEL_OPT_MIN
#define LZ4HC_CLEVEL_OPT_MIN 10 |
◆ LZ4HC_DICTIONARY_LOGSIZE
#define LZ4HC_DICTIONARY_LOGSIZE 16 |
◆ LZ4HC_HASH_LOG
#define LZ4HC_HASH_LOG 15 |
◆ LZ4HC_HASH_MASK
◆ LZ4HC_HASHTABLESIZE
◆ LZ4HC_MAXD
◆ LZ4HC_MAXD_MASK
◆ LZ4_streamHC_t
◆ LZ4HC_CCtx_internal
◆ LZ4_compress_HC()
LZ4LIB_API int LZ4_compress_HC |
( |
const char * |
src, |
|
|
char * |
dst, |
|
|
int |
srcSize, |
|
|
int |
dstCapacity, |
|
|
int |
compressionLevel |
|
) |
| |
LZ4_compress_HC() : Compress data from src
into dst
, using the powerful but slower "HC" algorithm. dst
must be already allocated. Compression is guaranteed to succeed if dstCapacity >= LZ4_compressBound(srcSize)
(see "lz4.h") Max supported srcSize
value is LZ4_MAX_INPUT_SIZE (see "lz4.h") compressionLevel
: any value between 1 and LZ4HC_CLEVEL_MAX will work. Values > LZ4HC_CLEVEL_MAX behave the same as LZ4HC_CLEVEL_MAX.
- Returns
- : the number of bytes written into 'dst' or 0 if compression fails.
Definition at line 958 of file lz4hc.c.
◆ LZ4_compress_HC_continue()
LZ4LIB_API int LZ4_compress_HC_continue |
( |
LZ4_streamHC_t * |
streamHCPtr, |
|
|
const char * |
src, |
|
|
char * |
dst, |
|
|
int |
srcSize, |
|
|
int |
maxDstSize |
|
) |
| |
◆ LZ4_compress_HC_continue_destSize()
LZ4LIB_API int LZ4_compress_HC_continue_destSize |
( |
LZ4_streamHC_t * |
LZ4_streamHCPtr, |
|
|
const char * |
src, |
|
|
char * |
dst, |
|
|
int * |
srcSizePtr, |
|
|
int |
targetDstSize |
|
) |
| |
LZ4_compress_HC_continue_destSize() : v1.9.0+ Similar to LZ4_compress_HC_continue(), but will read as much data as possible from src
to fit into targetDstSize
budget. Result is provided into 2 parts :
- Returns
- : the number of bytes written into 'dst' (necessarily <= targetDstSize) or 0 if compression fails.
srcSizePtr
: on success, *srcSizePtr will be updated to indicate how much bytes were read from src
. Note that this function may not consume the entire input.
Definition at line 1159 of file lz4hc.c.
◆ LZ4_compress_HC_destSize()
LZ4LIB_API int LZ4_compress_HC_destSize |
( |
void * |
stateHC, |
|
|
const char * |
src, |
|
|
char * |
dst, |
|
|
int * |
srcSizePtr, |
|
|
int |
targetDstSize, |
|
|
int |
compressionLevel |
|
) |
| |
LZ4_compress_HC_destSize() : v1.9.0+ Will compress as much data as possible from src
to fit into targetDstSize
budget. Result is provided in 2 parts :
- Returns
- : the number of bytes written into 'dst' (necessarily <= targetDstSize) or 0 if compression fails.
srcSizePtr
: on success, *srcSizePtr is updated to indicate how much bytes were read from src
Definition at line 976 of file lz4hc.c.
◆ LZ4_compress_HC_extStateHC()
LZ4LIB_API int LZ4_compress_HC_extStateHC |
( |
void * |
stateHC, |
|
|
const char * |
src, |
|
|
char * |
dst, |
|
|
int |
srcSize, |
|
|
int |
maxDstSize, |
|
|
int |
compressionLevel |
|
) |
| |
◆ LZ4_createStreamHC()
◆ LZ4_DEPRECATED() [1/7]
◆ LZ4_DEPRECATED() [2/7]
◆ LZ4_DEPRECATED() [3/7]
◆ LZ4_DEPRECATED() [4/7]
◆ LZ4_DEPRECATED() [5/7]
◆ LZ4_DEPRECATED() [6/7]
◆ LZ4_DEPRECATED() [7/7]
◆ LZ4_freeStreamHC()
◆ LZ4_initStreamHC()
◆ LZ4_loadDictHC()
◆ LZ4_resetStreamHC()
◆ LZ4_resetStreamHC_fast()
◆ LZ4_saveDictHC()
◆ LZ4_sizeofStateHC()
◆ compressionLevel
const char char int int int compressionLevel |
◆ dest
◆ inputBuffer
◆ inputSize
const char char int inputSize |
◆ maxOutputSize
const char char int int maxOutputSize |
◆ source