GString

Undocumented in source.

Members

Variables

allocatedLen
size_t allocatedLen;

the number of bytes that can be stored in the string before it needs to be reallocated. May be larger than len.

len
size_t len;

contains the length of the string, not including the terminating nul byte.

str
char* str;

points to the character data. It may move as text is added. The str field is null-terminated and so can be used as an ordinary C string.