From c81e514143877a5e2356fc58856cafc63488e041 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Sep 2021 14:19:47 +0200 Subject: Use binary mode in lz4::?stream usage examples --- libbutl/lz4-stream.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbutl') 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. -- cgit v1.1