|
My Project
|
A short-string-optimizing string type. More...
#include <config_file.h>
Public Attributes | |
| char | short_buf [16] |
| The inline buffer for short strings. | |
| char * | long_buf |
| The buffer for long strings. | |
A short-string-optimizing string type.
This struct allows for storing up to 15 characters (plus a terminating '\0') inline. For longer strings memory will be allocated.
The tag for this union is the last character of short_buf:
'\0' then short_buf is valid, long_buf is valid. | char* ConfigString::long_buf |
The buffer for long strings.
May be NULL.