summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-23 06:46:35 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-23 06:46:35 (GMT)
commit9c6fb8b160e72454cb50ca78ceca428cb246fd8a (patch)
tree208ba9019adb4d938b5a8cb92cbadc032ac6771b /lib/lz4.h
parentb05d3d71a6ae2a0f711dfa0a046b8b0095978045 (diff)
downloadlz4-9c6fb8b160e72454cb50ca78ceca428cb246fd8a.zip
lz4-9c6fb8b160e72454cb50ca78ceca428cb246fd8a.tar.gz
lz4-9c6fb8b160e72454cb50ca78ceca428cb246fd8a.tar.bz2
Added LZ4_compress_fast_extState()
Diffstat (limited to 'lib/lz4.h')
-rw-r--r--lib/lz4.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index cf06a8e..a2091fa 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -119,16 +119,6 @@ LZ4_compressBound() :
int LZ4_compressBound(int inputSize);
/*
-LZ4_compress_fast() :
- Same as LZ4_compress_limitedOutput, but allows to select an "acceleration" factor.
- The larger the value, the faster the algorithm, but also the lesser the compression.
- So it's a trade-off, which can be fine tuned, selecting whichever value you want.
- An acceleration value of "0" means "use Default value", which is typically about 15 (see lz4.c source code).
- Note : this function is "safe", even if its name does not say it. It's just faster and compress less.
-*/
-int LZ4_compress_fast (const char* source, char* dest, int sourceSize, int maxOutputSize, unsigned acceleration);
-
-/*
LZ4_compress_safe_extState() :
Same compression function, just using an externally allocated memory space to store compression state.
Use LZ4_sizeofState() to know how much memory must be allocated,
@@ -138,6 +128,18 @@ LZ4_compress_safe_extState() :
int LZ4_sizeofState(void);
int LZ4_compress_safe_extState (void* state, const char* source, char* dest, int inputSize, int maxOutputSize);
+/*
+LZ4_compress_fast() :
+ Same as LZ4_compress_safe(), but allows to select an "acceleration" factor.
+ The larger the acceleration value, the faster the algorithm, but also the lesser the compression.
+ It's a trade-off, which can be fine tuned, selecting whichever value you want.
+ An acceleration value of "0" means "use Default value", which is typically 17 (see lz4.c source code).
+ An acceleration value of "1" is the same as regular LZ4_compress_safe()
+ Note : this function is "safe", even if its name does not explicitly contain the word. It's just faster and compress less.
+*/
+int LZ4_compress_fast (const char* source, char* dest, int sourceSize, int maxOutputSize, unsigned acceleration);
+int LZ4_compress_fast_extState (void* state, const char* source, char* dest, int inputSize, int maxOutputSize, unsigned acceleration);
+
/*
LZ4_decompress_fast() :