GATE
|
character (byte) string builder class More...
#include <strings.h>
Data Fields | |
gate_stringbuffer_t * | buffer |
gate_char8_t * | ptr_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) |
character (byte) string builder class
Stringbuilders hold a stringbuffer and grow them if necessary (when the current capacity is reached)
gate_stringbuffer_t* buffer |
pointer to dynamic stringbuffer
gate_char8_t* ptr_data |
pointer to first byte in stringbuffer
gate_size_t length |
length of already used bytes in stringbuffer (beginning with ptr_data)
gate_size_t capacity |
current bytes capacity of stringbuffer
gate_stringbuffer_t *(* resize) (gate_stringbuffer_t *buffer, gate_size_t strlength, gate_size_t newcapacity) |
function that reallocates the string buffer