rcutils
master
C API providing common utilities and data structures.
|
The structure holding the metadata for a char array. More...
#include <char_array.h>
Public Attributes | |
char * | buffer |
A pointer to the allocated memory for this char array. More... | |
bool | owns_buffer |
size_t | buffer_length |
The length of the data stored in the buffer pointer. More... | |
size_t | buffer_capacity |
The maximum capacity of the buffer pointer. More... | |
rcutils_allocator_t | allocator |
The allocator used to allocate and free the data in the pointer. More... | |
The structure holding the metadata for a char array.
char* rcutils_char_array_t::buffer |
A pointer to the allocated memory for this char array.
bool rcutils_char_array_t::owns_buffer |
if this is true, we may safely free/realloc the buffer as needed; otherwise we will leave the buffer alone and alloc new memory if more space is needed
size_t rcutils_char_array_t::buffer_length |
The length of the data stored in the buffer pointer.
size_t rcutils_char_array_t::buffer_capacity |
The maximum capacity of the buffer pointer.
rcutils_allocator_t rcutils_char_array_t::allocator |
The allocator used to allocate and free the data in the pointer.