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

A singly-linked list of String8 slices. More...

#include <base_strings.h>

Collaboration diagram for String8List:

Public Attributes

String8Nodefirst
String8Nodelast
usize node_count
usize total_size

Detailed Description

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.

Member Data Documentation

◆ first

String8Node* String8List::first

Pointer to the first node, or NULL if empty.

Definition at line 82 of file base_strings.h.

◆ last

String8Node* String8List::last

Pointer to the last node for O(1) append.

Definition at line 83 of file base_strings.h.

◆ node_count

usize String8List::node_count

Number of nodes currently in the list.

Definition at line 84 of file base_strings.h.

◆ total_size

usize String8List::total_size

Sum of all node string sizes in bytes.

Definition at line 85 of file base_strings.h.


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