This function is called to signal that the consumer (caller) of the generator has processed part of the data returned by the previous call to `prepare`. The value of `n` indicates how much of the data processed (in bytes). When `n` exceeds the number of bytes returned from the last call to `prepare`, `consume` shall behave as if `n` was equal to that number. Remaining unconsumed data will be returned from subsequent calls to `prepare`. [*Note:] Any buffers obtained by previous calls to `prepare` are invalidated.
This function is called to signal that the consumer (caller) of the generator has processed part of the data returned by the previous call to `prepare`. The value of `n` indicates how much of the data processed (in bytes). When `n` exceeds the number of bytes returned from the last call to `prepare`, `consume` shall behave as if `n` was equal to that number. Remaining unconsumed data will be returned from subsequent calls to `prepare`. [*Note:] Any buffers obtained by previous calls to `prepare` are invalidated.
The value of `n` indicates how much of the data processed (in bytes).
When `n` exceeds the number of bytes returned from the last call to `prepare`, `consume` shall behave as if `n` was equal to that number.
Remaining unconsumed data will be returned from subsequent calls to `prepare`.
[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated.
The value of `n` indicates how much of the data processed (in bytes).
When `n` exceeds the number of bytes returned from the last call to `prepare`, `consume` shall behave as if `n` was equal to that number.
Remaining unconsumed data will be returned from subsequent calls to `prepare`.
[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated.