|
cbase 1.50.0
C/C++ Static Template
|
A singly-linked list of String8 slices. More...
#include <base_strings.h>

Public Attributes | |
| String8Node * | first |
| String8Node * | last |
| usize | node_count |
| usize | total_size |
A singly-linked list of String8 slices.
Tracks the total byte count across all nodes so that a contiguous join buffer can be allocated in a single arena_push call. Use str8_list_push() to append nodes.
Definition at line 81 of file base_strings.h.
| String8Node* String8List::first |
Pointer to the first node, or NULL if empty.
Definition at line 82 of file base_strings.h.
| String8Node* String8List::last |
Pointer to the last node for O(1) append.
Definition at line 83 of file base_strings.h.
| usize String8List::node_count |
Number of nodes currently in the list.
Definition at line 84 of file base_strings.h.
| usize String8List::total_size |
Sum of all node string sizes in bytes.
Definition at line 85 of file base_strings.h.