From 8773152a57a4e1524be66c7d6777c48de246040f Mon Sep 17 00:00:00 2001 From: ljfa Date: Mon, 21 Sep 2015 18:10:03 +0200 Subject: Make the inflate_streambuf rewind the input --- include/io/izlibstream.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/io/izlibstream.h b/include/io/izlibstream.h index d3c4faa14e..4c6d5def85 100644 --- a/include/io/izlibstream.h +++ b/include/io/izlibstream.h @@ -64,6 +64,11 @@ private: * This istream wraps another istream. The izlibstream will read compressed * data from the wrapped istream and inflate (decompress) it with zlib. * + * @note If you want to read more data from the wrapped istream after the end + * of the compressed data, then it must allow seeking. It is unavoidable for + * the izlibstream to consume more data after the compressed data. + * It will automatically attempt to seek the wrapped istream back to the point + * after the end of the compressed data. * @sa inflate_streambuf */ class izlibstream : public std::istream -- cgit 0.0.5-2-1-g0f52