summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/io/ozlibstream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/io/ozlibstream.h b/include/io/ozlibstream.h
index d4ea8c2840..770db0029d 100644
--- a/include/io/ozlibstream.h
+++ b/include/io/ozlibstream.h
@@ -48,6 +48,8 @@ public:
std::ostream& get_ostr() const { return os; }
+ ///Finishes compression and writes all pending data to the output
+ void close();
private:
std::ostream& os;
std::vector<char> in;
@@ -84,6 +86,8 @@ public:
///@return the wrapped ostream
std::ostream& get_ostr() const { return buf.get_ostr(); }
+ ///Finishes compression and writes all pending data to the output
+ void close() { buf.close(); }
private:
deflate_streambuf buf;
};