summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-03-30 20:32:25 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-03-30 20:32:25 (GMT)
commit4c227a487e25c175d98a320386c96dbea6628216 (patch)
treeecd9355fcc4aa91dd043cabbcde2128f6f91b906 /lib/lz4.h
parent2a826193110e5423e7dedcaa78ddb7c1aa1f0950 (diff)
downloadlz4-4c227a487e25c175d98a320386c96dbea6628216.zip
lz4-4c227a487e25c175d98a320386c96dbea6628216.tar.gz
lz4-4c227a487e25c175d98a320386c96dbea6628216.tar.bz2
Added LZ4_compress_fast()
Diffstat (limited to 'lib/lz4.h')
-rw-r--r--lib/lz4.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index de43fc0..eabc40f 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -130,6 +130,16 @@ int LZ4_compress_limitedOutput (const char* source, char* dest, int sourceSize,
/*
+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).
+*/
+int LZ4_compress_fast (const char* source, char* dest, int sourceSize, int maxOutputSize, unsigned acceleration);
+
+
+/*
LZ4_compress_withState() :
Same compression functions, but using an externally allocated memory space to store compression state.
Use LZ4_sizeofState() to know how much memory must be allocated,