(&mut self)
| 36 | } |
| 37 | |
| 38 | pub fn clear(&mut self) { |
| 39 | self.bytes.clear(); |
| 40 | self.cursor = 0; |
| 41 | self.sizes = 0; |
| 42 | } |
| 43 | |
| 44 | /// Returns whether the stream has been read as a certain sized value. |
| 45 | pub fn read_as(&self, size: u32) -> bool { |
no outgoing calls