cbase 1.50.0
C/C++ Static Template
Loading...
Searching...
No Matches
StringBuilder Struct Reference

An allocator-agnostic string builder. More...

#include <str_builder.h>

Collaboration diagram for StringBuilder:

Public Attributes

String8Nodefirst
String8Nodelast
usize node_count
usize total_size

Detailed Description

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.

Member Data Documentation

◆ first

String8Node* StringBuilder::first

Head of the node list.

Definition at line 57 of file str_builder.h.

◆ last

String8Node* StringBuilder::last

Tail of the node list (for O(1) append).

Definition at line 58 of file str_builder.h.

◆ node_count

usize StringBuilder::node_count

Number of segments appended so far.

Definition at line 59 of file str_builder.h.

◆ total_size

usize StringBuilder::total_size

Total byte count of all segments combined.

Definition at line 60 of file str_builder.h.


The documentation for this struct was generated from the following file: