Public Member Functions
void wl_array_init (struct wl_array *array)
void wl_array_release (struct wl_array *array)
void * wl_array_add (struct wl_array *array, size_t size)
int wl_array_copy (struct wl_array *array, struct wl_array *source)
void * data
(Note that these are not member symbols.)
#define wl_array_for_each(pos, array)
A wl_array is a dynamic array that can only grow until released. It is intended for relatively small allocations whose size is variable or not known in advance. While construction of a wl_array does not require all elements to be of the same size, wl_array_for_each() does require all elements to have the same type and size.
Member Function Documentation
void * wl_array_add (struct wl_array * array, size_t size)
Increases the size of the array by
array Array whose size is to be increased
size Number of bytes to increase the size of the array by
A pointer to the beginning of the newly appended space, or NULL when resizing fails.
int wl_array_copy (struct wl_array * array, struct wl_array * source)
Copies the contents of
array Destination array to copy to
source Source array to copy from
0 on success, or -1 on failure
void wl_array_init (struct wl_array * array)
Initializes the array.
array Array to initialize
void wl_array_release (struct wl_array * array)
Releases the array data.
Leaves the array in an invalid state.
array Array whose data is to be released
Friends And Related Symbol Documentation
Generated automatically by Doxygen for Wayland from the source code.