diff --git a/src/fs/io/BufferedOutputStream.hxx b/src/fs/io/BufferedOutputStream.hxx index 88096bea9..b88be1bac 100644 --- a/src/fs/io/BufferedOutputStream.hxx +++ b/src/fs/io/BufferedOutputStream.hxx @@ -111,6 +111,13 @@ public: */ void Flush(); + /** + * Discard buffer contents. + */ + void Discard() noexcept { + buffer.Clear(); + } + private: bool AppendToBuffer(const void *data, std::size_t size) noexcept;