diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-05-03 17:02:48 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-05-03 17:02:48 (GMT) |
commit | 1171303a4ff6566f7f9d4b1f91d4d73f0bf00584 (patch) | |
tree | f61e8a4c778b60c4a40009e0f4a456e822edbe13 /examples/blockStreaming_doubleBuffer.c | |
parent | 1b17bf2ab8cf66dd2b740eca376e2d46f7ad7041 (diff) | |
download | lz4-1171303a4ff6566f7f9d4b1f91d4d73f0bf00584.zip lz4-1171303a4ff6566f7f9d4b1f91d4d73f0bf00584.tar.gz lz4-1171303a4ff6566f7f9d4b1f91d4d73f0bf00584.tar.bz2 |
Updated streaming examples
Diffstat (limited to 'examples/blockStreaming_doubleBuffer.c')
-rw-r--r-- | examples/blockStreaming_doubleBuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/blockStreaming_doubleBuffer.c b/examples/blockStreaming_doubleBuffer.c index 58f2bdb..59355da 100644 --- a/examples/blockStreaming_doubleBuffer.c +++ b/examples/blockStreaming_doubleBuffer.c @@ -53,8 +53,8 @@ void test_compress(FILE* outFp, FILE* inpFp) { char cmpBuf[LZ4_COMPRESSBOUND(BLOCK_BYTES)]; - const int cmpBytes = LZ4_compress_safe_continue( - lz4Stream, inpPtr, cmpBuf, inpBytes, sizeof(cmpBuf)); + const int cmpBytes = LZ4_compress_fast_continue( + lz4Stream, inpPtr, cmpBuf, inpBytes, sizeof(cmpBuf), 1); if(cmpBytes <= 0) { break; } |