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 |
|---|---|---|
|
|
Pointer to the |
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