9namespace swoc {
inline namespace SWOC_VERSION_NS {
40 auto text = this->
view();
41 auto span =
_arena.require(n).remnant().rebind<
char>();
42 const_cast<char *&
>(
_buffer) = span.data();
MemArena & _arena
Arena for the buffer.
bool commit(size_t n) override
ArenaWriter & write(void const *data, size_t n) override
swoc::TextView view() const
size_t _capacity
Size of output buffer.
const char * data() const override
Return the output buffer.
FixedBufferWriter & write(char c) override
Write a single character c to the buffer.
size_t _attempted
Number of characters written, including those discarded due error condition.
bool commit(size_t n) override
Advance the used part of the output buffer.
char *const _buffer
Output buffer.
For template deduction guides.
void * memcpy(void *dst, const std::string_view &src)