Commit 56997290 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

io/BufferedOutputStream: add method Discard()

parent d2f84f3d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment