gbuffer_remove()

gbuffer_remove()#

The function gbuffer_remove() deallocates memory associated with a gbuffer_t * instance, including its internal data buffer and label, ensuring proper cleanup.

Prototype

void gbuffer_remove(gbuffer_t *gbuf);

Parameters

Key

Type

Description

gbuf

gbuffer_t *

Pointer to the gbuffer_t instance to be deallocated.


Return Value

This function does not return a value.

Notes

This function should not be called directly. Instead, use gbuffer_decref() to manage reference counting and ensure proper deallocation.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples