summaryrefslogtreecommitdiffstats
path: root/lz4.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 /lz4.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 'lz4.h')
-rw-r--r--lz4.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lz4.h b/lz4.h
index 2785444..0e6a60c 100644
--- a/lz4.h
+++ b/lz4.h
@@ -50,21 +50,21 @@ extern "C" {
// Simple Functions
//****************************
-int LZ4_compress (const char* source, char* dest, int input_size);
-int LZ4_uncompress (const char* source, char* dest, int output_size);
+int LZ4_compress (const char* source, char* dest, int inputSize);
+int LZ4_uncompress (const char* source, char* dest, int outputSize);
/*
LZ4_compress() :
- Compresses 'input_size' bytes from 'source' into 'dest'.
+ Compresses 'inputSize' bytes from 'source' into 'dest'.
Destination buffer must be already allocated,
and must be sized to handle worst cases situations (input data not compressible)
Worst case size evaluation is provided by function LZ4_compressBound()
- input_size : Max supported value is ~1.9GB
+ inputSize : Max supported value is ~1.9GB
return : the number of bytes written in buffer dest
or 0 if the compression fails
LZ4_uncompress() :
- output_size : is the original (uncompressed) size
+ outputSize : is the original (uncompressed) size
return : the number of bytes read in the source buffer (in other words, the compressed size)
If the source stream is malformed, the function will stop decoding and return a negative result, indicating the byte position of the faulty instruction.
note : This function never writes outside of provided buffers, and never modifies input buffer.