summaryrefslogtreecommitdiffstats
path: root/lz4hc.h
diff options
context:
space:
mode:
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2013-04-18 08:53:13 (GMT)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2013-04-18 08:53:13 (GMT)
commita2e93db805918a84908373a579c44732d3e6854e (patch)
tree28486565469e1a4f4d92c5304819916969091fb5 /lz4hc.h
parentcbfd031d301222123d185320a55a923f9363f781 (diff)
downloadlz4-a2e93db805918a84908373a579c44732d3e6854e.zip
lz4-a2e93db805918a84908373a579c44732d3e6854e.tar.gz
lz4-a2e93db805918a84908373a579c44732d3e6854e.tar.bz2
Added : function LZ4_compressHC_limitedOutput()
Updated : LZ4 Streaming Format.odt, to version 1.4 New : LZ4c now supports Stream Checksum (default) and Skippable chunks Updated : Fuzzer, testing LZ4_compressHC_limitedOutput() git-svn-id: https://lz4.googlecode.com/svn/trunk@93 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'lz4hc.h')
-rw-r--r--lz4hc.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/lz4hc.h b/lz4hc.h
index 30b0063..0e4ab44 100644
--- a/lz4hc.h
+++ b/lz4hc.h
@@ -39,7 +39,7 @@ extern "C" {
#endif
-int LZ4_compressHC (const char* source, char* dest, int isize);
+int LZ4_compressHC (const char* source, char* dest, int inputSize);
/*
LZ4_compressHC :
@@ -49,6 +49,20 @@ LZ4_compressHC :
Worst case size evaluation is provided by function LZ4_compressBound() (see "lz4.h")
*/
+int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize);
+
+/*
+LZ4_compress_limitedOutput() :
+ Compress 'inputSize' bytes from 'source' into an output buffer 'dest' of maximum size 'maxOutputSize'.
+ If it cannot achieve it, compression will stop, and result of the function will be zero.
+ This function never writes outside of provided output buffer.
+
+ inputSize : Max supported value is ~1.9GB
+ maxOutputSize : is maximum allowed size into the destination buffer (which must be already allocated)
+ return : the number of output bytes written in buffer 'dest'
+ or 0 if the compression fails
+*/
+
/* Note :
Decompression functions are provided within regular LZ4 source code (see "lz4.h") (BSD license)