summaryrefslogtreecommitdiffstats
path: root/lz4.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-05-03 18:56:08 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-05-03 18:56:08 (GMT)
commit200d87c6842047dab5c06c99cb267243710980fd (patch)
tree381f2da283252cf58f512cefb0569c0a70fb68fe /lz4.h
parent3452f57444b911dc7cbda69998149358b2a16caa (diff)
downloadlz4-200d87c6842047dab5c06c99cb267243710980fd.zip
lz4-200d87c6842047dab5c06c99cb267243710980fd.tar.gz
lz4-200d87c6842047dab5c06c99cb267243710980fd.tar.bz2
Added : *_withDict to fullbench
Diffstat (limited to 'lz4.h')
-rw-r--r--lz4.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lz4.h b/lz4.h
index 4759b2c..9ac11ba 100644
--- a/lz4.h
+++ b/lz4.h
@@ -118,10 +118,11 @@ LZ4_decompress_fast() :
originalSize : is the original and therefore uncompressed size
return : the number of bytes read from 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.
+ Destination buffer must be already allocated. Its size must be a minimum of 'originalSize' bytes.
note : This function is a bit faster than LZ4_decompress_safe()
- This function never writes outside of output buffers, but may read beyond input buffer in case of malicious data packet.
- Use this function preferably into a trusted environment (data to decode comes from a trusted source).
- Destination buffer must be already allocated. Its size must be a minimum of 'outputSize' bytes.
+ It provides fast decompression and fully respect memory boundaries for properly formed compressed data.
+ It does not provide full protection against intentionnally modified data stream.
+ Use this function in a trusted environment (data to decode comes from a trusted source).
*/
int LZ4_decompress_fast (const char* source, char* dest, int originalSize);