wl_array

\class wl_array

Dynamic 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.

extern (C)
struct wl_array {}

Members

Variables

alloc
size_t alloc;

Allocated space

data
void* data;

Array data

size
size_t size;

Array size

Meta