gbuffer_incref()
#
gbuffer_incref()
increments the reference count of a gbuffer_t
instance, ensuring it is not prematurely deallocated.
Prototype
gbuffer_t *gbuffer_incref(
gbuffer_t *gbuf
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to the |
Return Value
Returns the same gbuffer_t *
instance with an incremented reference count, or NULL
if the input is invalid.
Notes
If gbuf
is NULL
or has an invalid reference count, an error is logged and NULL
is returned.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples