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_extStateHC (void *state, const char *src, char *dst, int srcSize, int maxDstSize, int compressionLevel) |
|
LZ4LIB_API LZ4_streamHC_t * | LZ4_createStreamHC (void) |
|
LZ4LIB_API | LZ4_DEPRECATED ("use LZ4_compress_HC() instead") int LZ4_compressHC(const char *source |
|
LZ4LIB_API | LZ4_DEPRECATED ("use LZ4_compress_HC_extStateHC() instead") int LZ4_compressHC_withStateHC(void *state |
|
LZ4LIB_API | LZ4_DEPRECATED ("use LZ4_compress_HC_continue() instead") int LZ4_compressHC_continue(LZ4_streamHC_t *LZ4_streamHCPtr |
|
LZ4LIB_API | LZ4_DEPRECATED ("use LZ4_createStreamHC() instead") void *LZ4_createHC(char *inputBuffer) |
|
LZ4LIB_API | LZ4_DEPRECATED ("use LZ4_saveDictHC() instead") char *LZ4_slideInputBufferHC(void *LZ4HC_Data) |
|
LZ4LIB_API | LZ4_DEPRECATED ("use LZ4_freeStreamHC() instead") int LZ4_freeHC(void *LZ4HC_Data) |
|
LZ4LIB_API | LZ4_DEPRECATED ("use LZ4_resetStreamHC() instead") int LZ4_resetStreamStateHC(void *state |
|
LZ4LIB_API int | LZ4_freeStreamHC (LZ4_streamHC_t *streamHCPtr) |
|
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 int | LZ4_saveDictHC (LZ4_streamHC_t *streamHCPtr, char *safeBuffer, int maxDictSize) |
|
LZ4LIB_API int | LZ4_sizeofStateHC (void) |
|
#define LZ4HC_CLEVEL_DEFAULT 9 |
#define LZ4HC_CLEVEL_MAX 12 |
#define LZ4HC_CLEVEL_MIN 3 |
#define LZ4HC_CLEVEL_OPT_MIN 11 |
#define LZ4HC_DICTIONARY_LOGSIZE 17 /* because of btopt, hc would only need 16 */ |
#define LZ4HC_HASH_LOG 15 |
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 more 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
: Recommended values are between 4 and 9, although 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 581 of file lz4hc.c.
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_extStateHC |
( |
void * |
state, |
|
|
const char * |
src, |
|
|
char * |
dst, |
|
|
int |
srcSize, |
|
|
int |
maxDstSize, |
|
|
int |
compressionLevel |
|
) |
| |
LZ4_createStreamHC() and LZ4_freeStreamHC() : These functions create and release memory for LZ4 HC streaming state. Newly created states are automatically initialized. Existing states can be re-used several times, using LZ4_resetStreamHC(). These methods are API and ABI stable, they can be used in combination with a DLL.
Definition at line 612 of file lz4hc.c.
LZ4LIB_API const char char int int int compressionLevel |