pub fn clear(&mut self) {
        self.data.clear();
        self.wpos = 0;
        self.rpos = 0;
    }
/// Clear the buffer and reinitialize the reading and writing cursor
Clear the buffer and reinitialize the reading and writing cursor
Clear the buffer and reinitialize the reading and writing cursor
pub fn clear(&mut self) {
        self.data.clear();
        self.wpos = 0;
        self.rpos = 0;
    }
pub fn clear ( & mut self ) { self . data . clear ( ) ; self . wpos = 0 ; self . rpos = 0 ; }
Clear the buffer and reinitialize the reading and writing cursor
Clear the buffer and reinitialize the reading and writing cursor
&mut self