gbuffer_get_rd_offset()

gbuffer_get_rd_offset()#

Returns the current read offset of the given gbuffer_t instance.

Prototype

size_t gbuffer_get_rd_offset(gbuffer_t *gbuf);

Parameters

Key

Type

Description

gbuf

gbuffer_t *

Pointer to the gbuffer_t instance whose read offset is to be retrieved.


Return Value

The current read offset as a size_t value.

Notes

The function does not perform any validation on the gbuf pointer before accessing its read offset.

Prototype

// Not applicable in JS

Prototype

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