summaryrefslogtreecommitdiffstats
path: root/lz4.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-08-09 21:14:26 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-08-09 21:14:26 (GMT)
commit19d3c36f1c730db0051491eb20d78a84503242e9 (patch)
treeef76016a87e050ec76bc9839e3f1f2cdeb879104 /lz4.h
parent53f1fbe062c6904b06d7181ccdb5a8fd6f883f15 (diff)
downloadlz4-19d3c36f1c730db0051491eb20d78a84503242e9.zip
lz4-19d3c36f1c730db0051491eb20d78a84503242e9.tar.gz
lz4-19d3c36f1c730db0051491eb20d78a84503242e9.tar.bz2
Revert "Introduced "Continuous Block Mode" (CBM) naming"
This reverts commit 53f1fbe062c6904b06d7181ccdb5a8fd6f883f15.
Diffstat (limited to 'lz4.h')
-rw-r--r--lz4.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/lz4.h b/lz4.h
index 42c6ff9..f8327f0 100644
--- a/lz4.h
+++ b/lz4.h
@@ -170,11 +170,7 @@ int LZ4_decompress_safe_partial (const char* source, char* dest, int compressedS
/***********************************************
- 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".
+ Experimental Streaming Compression Functions
***********************************************/
#define LZ4_STREAMSIZE_U32 ((1 << (LZ4_MEMORY_USAGE-2)) + 8)
@@ -237,7 +233,7 @@ int LZ4_saveDict (LZ4_stream_t* LZ4_stream, char* safeBuffer, int dictSize);
/************************************************
- Experimental CBM Decompression Functions
+ Experimental Streaming Decompression Functions
************************************************/
#define LZ4_STREAMDECODESIZE_U32 4
@@ -305,8 +301,16 @@ 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 CBM functions; use new CBM interface whenever possible */
+/* Obsolete streaming functions; use new streaming interface whenever possible */
void* LZ4_create (const char* inputBuffer);
int LZ4_sizeofStreamState(void);
int LZ4_resetStreamState(void* state, const char* inputBuffer);