Get an immutable reference to the underlying buffer
(&self)
| 332 | |
| 333 | /// Get an immutable reference to the underlying buffer |
| 334 | pub fn buffer(&self) -> &BytesMut { |
| 335 | self.buffer.as_ref().expect("Buffer should be available") |
| 336 | } |
| 337 | |
| 338 | /// Take ownership of the buffer, preventing return to pool |
| 339 | pub fn take(mut self) -> BytesMut { |