ucx
UAP Common Extensions
Loading...
Searching...
No Matches
cx_buffer_s Struct Reference

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.

Detailed Description

Structure for the UCX buffer data.

Field Documentation

◆ capacity

size_t cx_buffer_s::capacity

Current capacity (i.e.

maximum size) of the buffer.

◆ flags

int cx_buffer_s::flags

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