diff options
author | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2012-02-16 18:39:50 (GMT) |
---|---|---|
committer | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2012-02-16 18:39:50 (GMT) |
commit | 4045a42bb14007bd982e256c2ac97cc8695de9cd (patch) | |
tree | d093d8d8051ccadcc9a47e144133a9efcbdf8dba /lz4.h | |
parent | 7b6ba0421dfea68d8f62cd3ead5279d6a28e43b5 (diff) | |
download | lz4-4045a42bb14007bd982e256c2ac97cc8695de9cd.zip lz4-4045a42bb14007bd982e256c2ac97cc8695de9cd.tar.gz lz4-4045a42bb14007bd982e256c2ac97cc8695de9cd.tar.bz2 |
Added : LZ4_compressBound() function
corrected : bench.c now correctly detects file size on a wider ranger of compilers; thanks to Erik Andersen
minor : removed warnings on undefined (-Wundef on gcc), thanks David Sterba for suggestion
git-svn-id: https://lz4.googlecode.com/svn/trunk@55 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'lz4.h')
-rw-r--r-- | lz4.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -61,6 +61,18 @@ LZ4_uncompress() : // Advanced Functions
//****************************
+int LZ4_compressBound(int isize);
+
+/*
+LZ4_compressBound() :
+ Provides the maximum size that LZ4 may output in a "worst case" scenario, for memory allocation of output buffer.
+
+ isize : is the input size
+ return : maximum size that LZ4 may output in a "worst case" scenario
+ note : this function is limited by "int" range
+*/
+
+
int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize);
/*
|