wl_array - Online Linux Manual PageSection : 3
Updated : Thu Jan 28 2021
Source : Version 1.19.0
Note : Wayland
NAMEwl_array
SYNOPSIS
#include <wayland−util.h>
Public Member Functionsvoid 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)
Data Fieldssize_t size
size_t alloc
void * data
Related Functions(Note that these are not member functions.) #define wl_array_for_each(pos, array)
Detailed DescriptionDynamic 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 size bytes. Parameters array Array whose size is to be increased
size Number of bytes to increase the size of the array by Returns 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 source to array. Parameters array Destination array to copy to
source Source array to copy from Returns 0 on success, or -1 on failure
void wl_array_init (struct wl_array * array)Initializes the array. Parameters array Array to initialize
void wl_array_release (struct wl_array * array)Releases the array data. Note Leaves the array in an invalid state. Parameters array Array whose data is to be released
Friends And Related Function Documentation
#define wl_array_for_each(pos, array) [related]Value: for (pos = (array)->data; (const char *) pos < ((const char *) (array)->data + (array)->size); (pos)++)Iterates over an array. This macro expresses a for-each iterator for wl_array. It assigns each element in the array to pos, which can then be referenced in a trailing code block. pos must be a pointer to the array element type, and all array elements must be of the same type and size. Parameters pos Cursor that each array element will be assigned to
array Array to iterate over See also wl_list_for_each()
Field Documentation
size_t wl_array::allocAllocated space
void* wl_array::dataArray data
size_t wl_array::sizeArray size
AuthorGenerated automatically by Doxygen for Wayland from the source code. 0
Johanes Gumabo
Data Size : 18,092 byte
man-wl_array.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 165,591
Visitor ID : :
Visitor IP : 18.219.247.59 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.