gbuffer_cur_wr_pointer()

gbuffer_cur_wr_pointer()#

Returns a pointer to the current write position in the given gbuffer_t structure.

Prototype

void *gbuffer_cur_wr_pointer(
    gbuffer_t *gbuf
);

Parameters

Key

Type

Description

gbuf

gbuffer_t *

Pointer to the gbuffer_t structure whose write position is to be retrieved.


Return Value

Returns a pointer to the current write position in the buffer.

Notes

The returned pointer can be used to directly write data into the buffer. Ensure that the buffer has enough space before writing.

Prototype

// Not applicable in JS

Prototype

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