istream_pop_gbuffer()#
Retrieves and removes the current gbuffer_t * from the given istream_h *, returning ownership to the caller.
Prototype
gbuffer_t *istream_pop_gbuffer(
istream_h istream
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The input stream handle from which the |
Return Value
Returns the gbuffer_t * extracted from the istream_h *. The caller assumes ownership and must manage its lifecycle. Returns NULL if istream is invalid or empty.
Notes
After calling istream_pop_gbuffer(), the internal buffer of the istream_h * is set to NULL, meaning subsequent reads will require a new buffer.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples