Crossfire Server, Branch 1.12  R12190
Data Fields
StringBuffer Struct Reference

Data Fields

char * buf
 The string buffer.
size_t pos
 The current length of buf.
size_t size
 The allocation size of buf.

Detailed Description

Definition at line 32 of file stringbuffer.c.


Field Documentation

The string buffer.

The first pos bytes contain the collected string. It's size is at least size bytes.

Definition at line 37 of file stringbuffer.c.

Referenced by stringbuffer_append_printf(), stringbuffer_append_string(), stringbuffer_append_stringbuffer(), stringbuffer_ensure(), stringbuffer_finish(), and stringbuffer_new().

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 44 of file stringbuffer.c.

Referenced by stringbuffer_append_printf(), stringbuffer_append_string(), stringbuffer_append_stringbuffer(), stringbuffer_ensure(), stringbuffer_finish(), and stringbuffer_new().

The allocation size of buf.

Definition at line 49 of file stringbuffer.c.

Referenced by stringbuffer_ensure(), and stringbuffer_new().


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