![]() |
WPILibC++ 2027.0.0-alpha-3
|
raw_ostream style output to a SmallVector of uv::Buffer buffers. More...
#include <wpinet/raw_uv_ostream.h>
Public Member Functions | |
| raw_uv_ostream (SmallVectorImpl< uv::Buffer > &bufs, size_t allocSize) | |
| Construct a new raw_uv_ostream. | |
| raw_uv_ostream (SmallVectorImpl< uv::Buffer > &bufs, std::function< uv::Buffer()> alloc) | |
| Construct a new raw_uv_ostream. | |
| ~raw_uv_ostream () override=default | |
| std::span< uv::Buffer > | bufs () |
| Returns an span to the buffers. | |
| void | flush ()=delete |
| void | reset () |
| Resets the amount of allocated space. | |
raw_ostream style output to a SmallVector of uv::Buffer buffers.
Fixed-size buffers are allocated and appended as necessary to fit the data being output. The SmallVector need not be empty at start.
|
inline |
Construct a new raw_uv_ostream.
| bufs | Buffers vector. NOT cleared on construction. |
| allocSize | Size to allocate for each buffer; allocation will be performed using Buffer::Allocate(). |
|
inline |
Construct a new raw_uv_ostream.
| bufs | Buffers vector. NOT cleared on construction. |
| alloc | Allocator. |
|
overridedefault |
|
inline |
Returns an span to the buffers.
|
delete |
|
inline |
Resets the amount of allocated space.