summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorljfa <ljfa-ag@web.de>2015-09-21 18:10:03 +0200
committerljfa <ljfa-ag@web.de>2015-09-21 18:10:03 +0200
commit8773152a57a4e1524be66c7d6777c48de246040f (patch)
tree4820f57edbe07859737624b8dfcdbf91309a8687 /include
parent57136429177ed86e2152154d4ecc229d3afe6d94 (diff)
downloadProject-Tick-8773152a57a4e1524be66c7d6777c48de246040f.tar.gz
Project-Tick-8773152a57a4e1524be66c7d6777c48de246040f.zip
Make the inflate_streambuf rewind the input
Diffstat (limited to 'include')
-rw-r--r--include/io/izlibstream.h5
1 files changed, 5 insertions, 0 deletions
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