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_lineByLine.c | |
parent | 1b17bf2ab8cf66dd2b740eca376e2d46f7ad7041 (diff) | |
download | lz4-1171303a4ff6566f7f9d4b1f91d4d73f0bf00584.zip lz4-1171303a4ff6566f7f9d4b1f91d4d73f0bf00584.tar.gz lz4-1171303a4ff6566f7f9d4b1f91d4d73f0bf00584.tar.bz2 |
Updated streaming examples
Diffstat (limited to 'examples/blockStreaming_lineByLine.c')
-rw-r--r-- | examples/blockStreaming_lineByLine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/blockStreaming_lineByLine.c b/examples/blockStreaming_lineByLine.c index 8ae268f..c4fd2e3 100644 --- a/examples/blockStreaming_lineByLine.c +++ b/examples/blockStreaming_lineByLine.c @@ -64,8 +64,8 @@ static void test_compress( #endif { - const int cmpBytes = LZ4_compress_safe_continue( - lz4Stream, inpPtr, cmpBuf, inpBytes, cmpBufBytes); + const int cmpBytes = LZ4_compress_fast_continue( + lz4Stream, inpPtr, cmpBuf, inpBytes, cmpBufBytes, 1); if (cmpBytes <= 0) break; write_uint16(outFp, (uint16_t) cmpBytes); write_bin(outFp, cmpBuf, cmpBytes); |