pub fn drop(&mut self, count: usize) {
        if count > self.used {
            self.offset += self.used;
            self.used    = 0;
        } else {
            self.offset += count;
            self.used   -= count;
        }
    }
/// Drop a given number of bytes from the buffer.
Drop a given number of bytes from the buffer.
Drop a given number of bytes from the buffer .
pub fn drop(&mut self, count: usize) {
        if count > self.used {
            self.offset += self.used;
            self.used    = 0;
        } else {
            self.offset += count;
            self.used   -= count;
        }
    }
pub fn drop ( & mut self , count : usize ) { if count > self . used { self . offset += self . used ; self . used = 0 ; } else { self . offset += count ; self . used -= count ; } }
Drop a given number of bytes from the buffer.
Drop a given number of bytes from the buffer .
&mut self
count
usize
&mut self
count
usize