gbuffer_decref()#
Decrements the reference count of a gbuffer_t instance and deallocates it if the count reaches zero.
Prototype
void gbuffer_decref(gbuffer_t *gbuf);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
Pointer to the |
Return Value
This function does not return a value.
Notes
If the reference count reaches zero, the memory associated with the gbuffer_t instance is freed. Ensure that the gbuffer_t instance is valid before calling gbuffer_decref().
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples