fn rdupdate(&mut self, base: usize, len: usize) {
        assert!(self.valid <= self.len);
        if base <= self.valid && base+len > self.valid {
            assert!(base+len <= self.len);
            self.valid = base+len;
        }
    }
/// Update the valid portion of the buffer.
Update the valid portion of the buffer.
Update the valid portion of the buffer .
fn rdupdate(&mut self, base: usize, len: usize) {
        assert!(self.valid <= self.len);
        if base <= self.valid && base+len > self.valid {
            assert!(base+len <= self.len);
            self.valid = base+len;
        }
    }
fn rdupdate ( & mut self , base : usize , len : usize ) { assert ! ( self valid self len ) ; if base <= self . valid && base + len > self . valid { assert ! ( base len self len ) ; self . valid = base + len ; } }
Update the valid portion of the buffer.
Update the valid portion of the buffer .
&mut self
base
usize
len
usize
&mut self
base
usize
len
usize