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

io/BufferedOutputStream: allow specifying the buffer size

parent 9da28e5c
......@@ -56,8 +56,9 @@ class BufferedOutputStream {
DynamicFifoBuffer<char> buffer;
public:
explicit BufferedOutputStream(OutputStream &_os) noexcept
:os(_os), buffer(32768) {}
explicit BufferedOutputStream(OutputStream &_os,
size_t buffer_size=32768) noexcept
:os(_os), buffer(buffer_size) {}
/**
* Write the contents of a buffer.
......
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