io/BufferedOutputStream: allow specifying the buffer size
This commit is contained in:
parent
9da28e5c73
commit
d2f84f3df8
@ -56,8 +56,9 @@ class BufferedOutputStream {
|
|||||||
DynamicFifoBuffer<char> buffer;
|
DynamicFifoBuffer<char> buffer;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit BufferedOutputStream(OutputStream &_os) noexcept
|
explicit BufferedOutputStream(OutputStream &_os,
|
||||||
:os(_os), buffer(32768) {}
|
size_t buffer_size=32768) noexcept
|
||||||
|
:os(_os), buffer(buffer_size) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write the contents of a buffer.
|
* Write the contents of a buffer.
|
||||||
|
Loading…
Reference in New Issue
Block a user