Get the used length of this buffer - number of bytes that have been pushed in, but not yet flushed out.
(&self)
| 39 | /// yet flushed out. |
| 40 | /// |
| 41 | pub fn len(&self) -> usize { |
| 42 | (self.head - self.tail).0 as usize |
| 43 | } |
| 44 | |
| 45 | /// Push a byte slice onto the ring-buffer. |
| 46 | /// |
no outgoing calls