io/BufferedOutputStream: add method Discard()
This commit is contained in:
parent
d2f84f3df8
commit
56997290d7
|
@ -111,6 +111,13 @@ public:
|
||||||
*/
|
*/
|
||||||
void Flush();
|
void Flush();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Discard buffer contents.
|
||||||
|
*/
|
||||||
|
void Discard() noexcept {
|
||||||
|
buffer.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool AppendToBuffer(const void *data, std::size_t size) noexcept;
|
bool AppendToBuffer(const void *data, std::size_t size) noexcept;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue