x_array_back
Get a pointer to the last element in the array.
X_ARRAY_API void * x_array_back(XArray *array);
Parameters
XArray *array- Pointer to the array.
Returns
Pointer to the last element.
Get a pointer to the last element in the array.
X_ARRAY_API void * x_array_back(XArray *array);
XArray *arrayPointer to the last element.
Get the current capacity of the array.
X_ARRAY_API uint32_t x_array_capacity(XArray *arr);
XArray *arrMaximum number of elements the array can hold without resizing.
Get the number of elements currently stored in the array.
X_ARRAY_API uint32_t x_array_count(XArray *arr);
XArray *arrNumber of elements in the array.
Get a pointer to the underlying data buffer.
X_ARRAY_API void * x_array_data(XArray *arr);
XArray *arrPointer to the internal contiguous data storage.
Get a pointer to the element at the given index.
X_ARRAY_API void * x_array_get(
XArray *arr,
unsigned int index
);
XArray *arrunsigned int indexPointer to the element at the given index.
Check whether the array is empty.
X_ARRAY_API bool x_array_is_empty(XArray *array);
XArray *arrayTrue if the array contains no elements, false otherwise.