diff options
Diffstat (limited to 'lz4.h')
-rw-r--r-- | lz4.h | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -183,6 +183,7 @@ typedef struct { unsigned int table[LZ4_DICTSIZE_U32]; } LZ4_dict_t; /* * LZ4_createStream * provides a pointer (void*) towards an initialized LZ4_dict_t structure + * LZ4_free just frees it. */ void* LZ4_createStream(); int LZ4_free (void* LZ4_stream); @@ -190,30 +191,30 @@ int LZ4_free (void* LZ4_stream); /* * LZ4_loadDict * Use this function to load a static dictionary into LZ4_dict. - * You can load a size of 0 to init an LZ4_dict_t structure + * Loading a size of 0 is allowed and init the LZ4_dict_t structure. * Return : 1 if OK, 0 if error */ int LZ4_loadDict (void* LZ4_stream, const char* dictionary, int dictSize); /* - * LZ4_compress_usingDict + * LZ4_compress_continue * Compress data block 'source', using blocks compressed before to improve compression ratio * Previous data blocks are assumed to still be present at their previous location. */ -int LZ4_compress_usingDict (void* LZ4_stream, const char* source, char* dest, int inputSize); +int LZ4_compress_continue (void* LZ4_stream, const char* source, char* dest, int inputSize); /* - * LZ4_compress_limitedOutput_usingDict + * LZ4_compress_limitedOutput_continue * Same as before, but also specify a maximum target compressed size (maxOutputSize) * If it cannot be met, compression exits, and return a zero. */ -int LZ4_compress_limitedOutput_usingDict (void* LZ4_stream, const char* source, char* dest, int inputSize, int maxOutputSize); +int LZ4_compress_limitedOutput_continue (void* LZ4_stream, const char* source, char* dest, int inputSize, int maxOutputSize); /* * LZ4_moveDict * If previously compressed data block is not guaranteed to remain at its previous memory location * save it into a safe place (char* safeBuffer) - * before calling again LZ4_compress_usingDict() + * before calling again LZ4_compress_continue() * Return : 1 if OK, 0 if error * Note : any dictSize > 64 KB will be interpreted as 64KB. */ @@ -240,14 +241,15 @@ int LZ4_decompress_safe_withPrefix64k (const char* source, char* dest, int compr int LZ4_decompress_fast_withPrefix64k (const char* source, char* dest, int originalSize); + /************************************** Obsolete Functions **************************************/ /* These function names are deprecated and should no longer be used. They are only provided here for compatibility with older user programs. -- LZ4_uncompress is totally equivalent to LZ4_decompress_fast -- LZ4_uncompress_unknownOutputSize is totally equivalent to LZ4_decompress_safe +- LZ4_uncompress is the same as LZ4_decompress_fast +- LZ4_uncompress_unknownOutputSize is the same as LZ4_decompress_safe */ int LZ4_uncompress (const char* source, char* dest, int outputSize); int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); @@ -256,9 +258,7 @@ int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isiz void* LZ4_create (const char* inputBuffer); int LZ4_sizeofStreamState(void); int LZ4_resetStreamState(void* state, const char* inputBuffer); -int LZ4_compress_continue (void* LZ4_Data, const char* source, char* dest, int inputSize); -int LZ4_compress_limitedOutput_continue (void* LZ4_Data, const char* source, char* dest, int inputSize, int maxOutputSize); -char* LZ4_slideInputBuffer (void* LZ4_Data); +char* LZ4_slideInputBuffer (void* state); #if defined (__cplusplus) |