GATE
Loading...
Searching...
No Matches
gate_strbuilder8_class Struct Reference

character (byte) string builder class More...

#include <strings.h>

Data Fields

gate_stringbuffer_tbuffer
 
gate_char8_tptr_data
 
gate_size_t length
 
gate_size_t capacity
 
gate_stringbuffer_t *(* resize )(gate_stringbuffer_t *buffer, gate_size_t strlength, gate_size_t newcapacity)
 

Detailed Description

character (byte) string builder class

Stringbuilders hold a stringbuffer and grow them if necessary (when the current capacity is reached)

Field Documentation

◆ buffer

pointer to dynamic stringbuffer

◆ ptr_data

gate_char8_t* ptr_data

pointer to first byte in stringbuffer

◆ length

gate_size_t length

length of already used bytes in stringbuffer (beginning with ptr_data)

◆ capacity

gate_size_t capacity

current bytes capacity of stringbuffer

◆ resize

gate_stringbuffer_t *(* resize) (gate_stringbuffer_t *buffer, gate_size_t strlength, gate_size_t newcapacity)

function that reallocates the string buffer


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