gbuffer_clear()

gbuffer_clear()#

Resets the write and read pointers of the given gbuffer_t *, effectively clearing its contents.

Prototype

void gbuffer_clear(
    gbuffer_t *gbuf
);

Parameters

Key

Type

Description

gbuf

gbuffer_t *

Pointer to the gbuffer_t structure to be cleared.


Return Value

This function does not return a value.

Notes

This function does not deallocate memory; it only resets the buffer’s state.

Prototype

// Not applicable in JS

Prototype

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