Crossfire Server, Trunk
StringBuffer Struct Reference
+ Collaboration diagram for StringBuffer:

Data Fields

char * buf
 
size_t pos
 
size_t size
 

Detailed Description

A buffer that will be expanded as content is added to it.

Definition at line 25 of file stringbuffer.cpp.

Field Documentation

◆ buf

◆ pos

size_t StringBuffer::pos

The current length of buf. The invariant pos < size always holds; this means there is always enough room to attach a trailing \0 character.

Definition at line 37 of file stringbuffer.cpp.

Referenced by stringbuffer_append_char(), stringbuffer_append_multiline_block(), stringbuffer_append_printf(), stringbuffer_append_string(), stringbuffer_append_stringbuffer(), stringbuffer_ensure(), stringbuffer_finish(), stringbuffer_length(), stringbuffer_new(), and stringbuffer_trim_whitespace().

◆ size

size_t StringBuffer::size

The allocation size of buf.

Definition at line 42 of file stringbuffer.cpp.

Referenced by stringbuffer_append_multiline_block(), stringbuffer_ensure(), and stringbuffer_new().


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