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

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

#include <glib-compat.h>

Public Attributes

gpointer * pdata
guint len
guint alloc
gatomicrefcount ref_count
guint8 null_terminated:1
GDestroyNotify element_free_func

Detailed Description

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

Member Data Documentation

◆ alloc

guint _GRealPtrArray::alloc

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

◆ element_free_func

GDestroyNotify _GRealPtrArray::element_free_func

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

◆ len

guint _GRealPtrArray::len

Current number of pointers stored in the array.

◆ null_terminated

guint8 _GRealPtrArray::null_terminated

1 if a NULL sentinel is maintained past the last valid pointer, allowing the buffer to be used as a NULL-terminated array; 0 otherwise.

◆ pdata

gpointer* _GRealPtrArray::pdata

Pointer to the raw backing buffer storing the array's element pointers.

◆ ref_count

gatomicrefcount _GRealPtrArray::ref_count

Atomic reference count controlling the lifetime of this array.


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