gbuffer_totalbytes()

gbuffer_totalbytes()#

gbuffer_totalbytes() returns the total number of bytes written in the given gbuffer_t instance.

Prototype

size_t gbuffer_totalbytes(gbuffer_t *gbuf);

Parameters

Key

Type

Description

gbuf

gbuffer_t *

Pointer to the gbuffer_t instance whose total written bytes are to be retrieved.


Return Value

Returns the total number of bytes written in the gbuffer_t instance.

Notes

This function does not modify the gbuffer_t instance; it only retrieves the current write position.

Prototype

// Not applicable in JS

Prototype

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