|
cbase 1.50.0
C/C++ Static Template
|
An allocator-agnostic string builder. More...
#include <str_builder.h>

Public Attributes | |
| String8Node * | first |
| String8Node * | last |
| usize | node_count |
| usize | total_size |
An allocator-agnostic string builder.
Zero-initialize to get an empty builder. Does not own any memory - all allocations go through the MemAllocator passed to each call.
Definition at line 56 of file str_builder.h.
| String8Node* StringBuilder::first |
Head of the node list.
Definition at line 57 of file str_builder.h.
| String8Node* StringBuilder::last |
Tail of the node list (for O(1) append).
Definition at line 58 of file str_builder.h.
| usize StringBuilder::node_count |
Number of segments appended so far.
Definition at line 59 of file str_builder.h.
| usize StringBuilder::total_size |
Total byte count of all segments combined.
Definition at line 60 of file str_builder.h.