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>2011-06-07 17:57:25 (GMT)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2011-06-07 17:57:25 (GMT)
commita2010203173de3f793f4f351ccc7df3377d27a2c (patch)
tree60442e01b0f33e46987fa3c2a8cd74a55bf5e861 /lz4.h
parent075bf1349b23914d237f4e676d71da57ecfa4b7c (diff)
downloadlz4-a2010203173de3f793f4f351ccc7df3377d27a2c.zip
lz4-a2010203173de3f793f4f351ccc7df3377d27a2c.tar.gz
lz4-a2010203173de3f793f4f351ccc7df3377d27a2c.tar.bz2
Improved compression and decompression speed under GCC compiler
git-svn-id: https://lz4.googlecode.com/svn/trunk@11 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 429a20a..f831048 100644
--- a/lz4.h
+++ b/lz4.h
@@ -63,7 +63,7 @@ LZ4_uncompress :
int LZ4_uncompress_unknownOutputSize (char* source, char* dest, int isize, int maxOutputSize);
/*
-LZ4_uncompress :
+LZ4_uncompress_unknownOutputSize :
return : the number of bytes decoded in the destination buffer (necessarily <= maxOutputSize)
If the source stream is malformed, the function will stop decoding and return a negative result, indicating the byte position of the faulty instruction
This version never writes beyond dest + maxOutputSize, and is therefore protected against malicious data packets
@@ -89,21 +89,21 @@ LZ4_compressCtx :
//*********************************
-// Faster Decoding function
+// Deprecated decoding function
//*********************************
-#define LZ4_uncompress_fast LZ4_decode
int LZ4_decode (char* source, char* dest, int isize);
/*
-LZ4_decode : This version is the fastest one, besting LZ4_uncompress by a few %.
+LZ4_decode : This version is faster, but deprecated
return : the number of bytes in decoded buffer dest
note 1 : isize is the input size, therefore the compressed size
note 2 : destination buffer must be already allocated.
The program calling the decoder must know in advance the size of decoded stream to properly allocate the destination buffer
The destination buffer size must be at least "decompressedSize + 3 Bytes"
This version is **unprotected** against malicious data packets designed to create buffer overflow errors.
- It is therefore deprecated, but still present in this version for compatibility.
+ It is therefore not recommended in unsecure situations, such as Internet communications.
+ This function is deprecated.
*/