Feed bytes from the network into the parser buffer.
(&mut self, data: &[u8])
| 135 | |
| 136 | /// Feed bytes from the network into the parser buffer. |
| 137 | pub fn feed(&mut self, data: &[u8]) { |
| 138 | self.buf.extend_from_slice(data); |
| 139 | } |
| 140 | |
| 141 | /// Try to parse a complete RESP frame from the buffer. |
| 142 | /// |
no outgoing calls