|
Defines a container of required and user-defined fields that provide the necessary information and parameters for the implementation of the az_span_allocator_fn callback. More...
#include <az_span.h>
Data Fields | |
void * | user_context |
int32_t | bytes_used |
int32_t | minimum_required_size |
Defines a container of required and user-defined fields that provide the necessary information and parameters for the implementation of the az_span_allocator_fn callback.
int32_t az_span_allocator_context::bytes_used |
The amount of space consumed (i.e. written into) within the previously provided destination, which can be used to infer the remaining number of bytes of the az_span that are leftover.
int32_t az_span_allocator_context::minimum_required_size |
The minimum length of the destination az_span required to be provided by the callback. If 0, any non-empty sized buffer must be returned.
void* az_span_allocator_context::user_context |
Any struct that was provided by the user for their specific implementation, passed through to the az_span_allocator_fn.