gbuffer_reset_rd()

gbuffer_reset_rd()#

Resets the read pointer of the given gbuffer_t instance to the beginning, allowing data to be read from the start again.

Prototype

void gbuffer_reset_rd(
    gbuffer_t *gbuf
);

Parameters

Key

Type

Description

gbuf

gbuffer_t *

Pointer to the gbuffer_t instance whose read pointer will be reset.


Return Value

This function does not return a value.

Notes

This function is useful when re-reading data from a buffer without modifying its contents.

Prototype

// Not applicable in JS

Prototype

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