gbuffer_freebytes()

gbuffer_freebytes()#

gbuffer_freebytes() returns the number of free bytes available in the buffer for writing.

Prototype

size_t gbuffer_freebytes(gbuffer_t *gbuf);

Parameters

Key

Type

Description

gbuf

gbuffer_t *

Pointer to the gbuffer_t structure whose free space is to be determined.


Return Value

Returns the number of free bytes available in the buffer.

Notes

Ensure that gbuf is not NULL before calling gbuffer_freebytes() to avoid potential errors.

Prototype

// Not applicable in JS

Prototype

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