summaryrefslogtreecommitdiffstats
path: root/lz4hc.h
diff options
context:
space:
mode:
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)