|
ucx
UAP Common Extensions
|
Structure for the UCX buffer data. More...
#include <buffer.h>
Data Fields | |
| union { | |
| char * space | |
| Data is interpreted as text. | |
| unsigned char * bytes | |
| Data is interpreted as binary. | |
| }; | |
| A pointer to the buffer contents. | |
| const CxAllocator * | allocator |
| The allocator to use for automatic memory management. | |
| size_t | pos |
| Current position of the buffer. | |
| size_t | capacity |
| Current capacity (i.e. | |
| size_t | max_capacity |
| Maximum capacity that this buffer may grow to. | |
| size_t | size |
| Current size of the buffer content. | |
| int | flags |
| Flag register for buffer features. | |
Structure for the UCX buffer data.
| size_t cx_buffer_s::capacity |
Current capacity (i.e.
maximum size) of the buffer.
| int cx_buffer_s::flags |
Flag register for buffer features.