mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpiutil] raw_uv_ostream: Add reset() (#3701)
This enables reuse of a raw_uv_ostream object.
This commit is contained in:
@@ -53,6 +53,11 @@ class raw_uv_ostream : public raw_ostream {
|
||||
|
||||
void flush() = delete;
|
||||
|
||||
/**
|
||||
* Resets the amount of allocated space.
|
||||
*/
|
||||
void reset() { m_left = 0; }
|
||||
|
||||
private:
|
||||
void write_impl(const char* data, size_t len) override;
|
||||
uint64_t current_pos() const override;
|
||||
|
||||
Reference in New Issue
Block a user