gbuffer_leftbytes()#
gbuffer_leftbytes() returns the number of unread bytes remaining in the given gbuffer_t instance.
Prototype
size_t gbuffer_leftbytes(gbuffer_t *gbuf);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
Pointer to the |
Return Value
Returns the number of unread bytes remaining in the buffer.
Notes
If gbuf is NULL, an error is logged, and 0 is returned.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples