API Version: 2.0
Library Version: 2.76
Generated by gi-docgen 2023.2
since: 2.58
gpointer g_rc_box_alloc ( gsize block_size )
Allocates block_size bytes of memory, and adds reference counting semantics to it.
block_size
The data will be freed when its reference count drops to zero.
The allocated data is guaranteed to be suitably aligned for any built-in type.
Available since: 2.58
Type: gsize
gsize
The size of the allocation, must be greater than 0
Type: gpointer
gpointer
A pointer to the allocated memory.