Removes a certain number of bytes from the buffer.
fn consume(&mut self, num: usize) -> usize
| Name | Description |
|---|---|
| num | The number of bytes to remove. |
Returns the actual number of bytes removed.
The returned value can be less than the num argument because there are fewer than num bytes currently buffered.