diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-07-05 15:48:49 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-07-05 15:48:49 (GMT) |
commit | d3c43d3251057da84f036c1e43fe015d2731cdd1 (patch) | |
tree | 0ce0972e1f3bc833aa7e36f1f64941522d053c9f /programs | |
parent | e002818cf6aba7e2f56a08b8d9306b026f90ec4e (diff) | |
download | lz4-d3c43d3251057da84f036c1e43fe015d2731cdd1.zip lz4-d3c43d3251057da84f036c1e43fe015d2731cdd1.tar.gz lz4-d3c43d3251057da84f036c1e43fe015d2731cdd1.tar.bz2 |
Modified : streaming API (fast compression)
Diffstat (limited to 'programs')
-rw-r--r-- | programs/lz4io.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index 65d1445..7617cff 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -376,6 +376,11 @@ static int LZ4IO_LZ4_compress_limitedOutput_continue (void* ctx, const char* sou return LZ4_compress_limitedOutput_continue(ctx, source, dest, inputSize, maxOutputSize); } +static int LZ4IO_LZ4_saveDict (void* LZ4_stream, char* safeBuffer, int dictSize) +{ + return LZ4_saveDict ((LZ4_stream_t*) LZ4_stream, safeBuffer, dictSize); +} + static int LZ4IO_LZ4_slideInputBufferHC (void* ctx, char* buffer, int size) { (void)size; (void)buffer; @@ -411,7 +416,7 @@ static int compress_file_blockDependency(char* input_filename, char* output_file { initFunction = LZ4IO_LZ4_createStream; compressionFunction = LZ4IO_LZ4_compress_limitedOutput_continue; - nextBlockFunction = LZ4_saveDict; + nextBlockFunction = LZ4IO_LZ4_saveDict; freeFunction = LZ4_free; } else |