summaryrefslogtreecommitdiffstats
path: root/lz4.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-08-08 12:08:11 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-08-08 12:08:11 (GMT)
commit53f1fbe062c6904b06d7181ccdb5a8fd6f883f15 (patch)
treec0fbea1da29a30ada823ad601bb311e2fb9102ae /lz4.h
parent0be64b41c9da191638f24c9a3437c5b4ee22a2a6 (diff)
downloadlz4-53f1fbe062c6904b06d7181ccdb5a8fd6f883f15.zip
lz4-53f1fbe062c6904b06d7181ccdb5a8fd6f883f15.tar.gz
lz4-53f1fbe062c6904b06d7181ccdb5a8fd6f883f15.tar.bz2
Introduced "Continuous Block Mode" (CBM) naming
to better differentiate with future lz4s.c library
Diffstat (limited to 'lz4.h')
-rw-r--r--lz4.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/lz4.h b/lz4.h
index f8327f0..42c6ff9 100644
--- a/lz4.h
+++ b/lz4.h
@@ -170,7 +170,11 @@ int LZ4_decompress_safe_partial (const char* source, char* dest, int compressedS
/***********************************************
- Experimental Streaming Compression Functions
+ Experimental Continuous Block Mode
+
+ These functions allow the compression of continuous blocks,
+ where each block benefits from prior 64 KB within preceding blocks to achieve better compression ratio.
+ A flow of multiple continuous blocks is called a "stream".
***********************************************/
#define LZ4_STREAMSIZE_U32 ((1 << (LZ4_MEMORY_USAGE-2)) + 8)
@@ -233,7 +237,7 @@ int LZ4_saveDict (LZ4_stream_t* LZ4_stream, char* safeBuffer, int dictSize);
/************************************************
- Experimental Streaming Decompression Functions
+ Experimental CBM Decompression Functions
************************************************/
#define LZ4_STREAMDECODESIZE_U32 4
@@ -301,16 +305,8 @@ It is highly recommended to stop using these functions and migrated to newer one
/* int LZ4_uncompress (const char* source, char* dest, int outputSize); */
/* int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); */
-/*
- * If you prefer dynamic allocation methods,
- * LZ4_createStreamDecode()
- * provides a pointer (void*) towards an initialized LZ4_streamDecode_t structure.
- * LZ4_free just frees it.
- */
-/* void* LZ4_createStreamDecode(void); */
-/*int LZ4_free (void* LZ4_stream); yes, it's the same one as for compression */
-/* Obsolete streaming functions; use new streaming interface whenever possible */
+/* Obsolete CBM functions; use new CBM interface whenever possible */
void* LZ4_create (const char* inputBuffer);
int LZ4_sizeofStreamState(void);
int LZ4_resetStreamState(void* state, const char* inputBuffer);