diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-09 14:19:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-09 14:19:47 +0200 |
commit | c81e514143877a5e2356fc58856cafc63488e041 (patch) | |
tree | 33de29bc9553dc1aa2a1b60667d3d321fe7214e7 | |
parent | 2de164c50981044be723629d4484a79639e92cf0 (diff) |
Use binary mode in lz4::?stream usage examples
-rw-r--r-- | libbutl/lz4-stream.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbutl/lz4-stream.hxx b/libbutl/lz4-stream.hxx index 5a0e3ba..5d25670 100644 --- a/libbutl/lz4-stream.hxx +++ b/libbutl/lz4-stream.hxx @@ -75,7 +75,7 @@ namespace butl // // try // { - // ifdstream ifs (..., ifdstream::badbit); + // ifdstream ifs (..., fdopen_mode::binary, ifdstream::badbit); // lz4::istream izs (ifs, true /* end */); // ... // Read from izs. // } @@ -206,7 +206,7 @@ namespace butl // // try // { - // ofdstream ofs (...); + // ofdstream ofs (..., fdopen_mode::binary); // lz4::ostream ozs (ofs, 9, 4 /* 64KB */, nullopt /* content_size */); // // ... // Write to ozs. |