Whether the buffer has no written data.
(&self)
| 134 | |
| 135 | /// Whether the buffer has no written data. |
| 136 | pub fn is_empty(&self) -> bool { |
| 137 | self.len == 0 |
| 138 | } |
| 139 | |
| 140 | /// Total capacity of the buffer. |
| 141 | pub fn capacity(&self) -> usize { |
no outgoing calls
no test coverage detected