Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
_GRealArray Struct Reference

Internal implementation of GArray, holding the backing buffer and allocation metadata. More...

#include <glib-compat.h>

Public Attributes

guint8 * data
guint len
guint alloc
guint elt_size
guint zero_terminated
guint clear
gatomicrefcount ref_count
GDestroyNotify clear_func

Detailed Description

Internal implementation of GArray, holding the backing buffer and allocation metadata.

Member Data Documentation

◆ alloc

guint _GRealArray::alloc

Total number of elements the current backing buffer can hold before reallocation.

◆ clear

guint _GRealArray::clear

Non-zero if newly allocated elements are zero-initialised before use.

◆ clear_func

GDestroyNotify _GRealArray::clear_func

Optional callback invoked on each element before it is removed or the array is freed; NULL if not set.

◆ data

guint8* _GRealArray::data

Pointer to the raw backing buffer storing array elements.

◆ elt_size

guint _GRealArray::elt_size

Size in bytes of a single array element.

◆ len

guint _GRealArray::len

Current number of elements stored in the array.

◆ ref_count

gatomicrefcount _GRealArray::ref_count

Atomic reference count controlling the lifetime of this array.

◆ zero_terminated

guint _GRealArray::zero_terminated

Non-zero if a null element is maintained past the last valid element.


The documentation for this struct was generated from the following file: