/// Get the number of bytes buffered but not yet read.
///
/// Note: this is the maximum number of bytes that can be seeked forwards within the buffer.
Get the number of bytes buffered but not yet read.
Note: this is the maximum number of bytes that can be seeked forwards within the buffer.
Get the number of bytes buffered but not yet read . Note : this is the maximum number of bytes that can be seeked forwards within the buffer .
pub fn unread_buffer_len(&self) -> usize {
        let n_bytes = if self.write_pos >= self.read_pos {
            self.write_pos - self.read_pos
        }
        else {
            self.write_pos + (self.ring.len() - self.read_pos)
        };
        n_bytes
    }
pub fn unread_buffer_len ( & self ) -> usize { let n_bytes = if self . write_pos >= self . read_pos { self . write_pos - self . read_pos } else { self . write_pos + ( self . ring . len ( ) - self . read_pos ) } ; n_bytes }
Get the number of bytes buffered but not yet read.
Get the number of bytes buffered but not yet read .
&self