Reset the buffer for reuse without deallocating.
(&mut self)
| 124 | |
| 125 | /// Reset the buffer for reuse without deallocating. |
| 126 | pub fn clear(&mut self) { |
| 127 | self.len = 0; |
| 128 | } |
| 129 | |
| 130 | /// Current number of bytes written. |
| 131 | pub fn len(&self) -> usize { |
no outgoing calls