pub fn resize(&mut self, size: usize) {
        let diff = size - self.data.len();
        if diff > 0 {
            self.data.extend(std::iter::repeat(0).take(diff))
        }
    }
/// Change the buffer size to size.
///
/// _Note_: You cannot shrink a buffer with this method
Change the buffer size to size.
_Note_: You cannot shrink a buffer with this method
Change the buffer size to size . _Note_ : You cannot shrink a buffer with this method
pub fn resize(&mut self, size: usize) {
        let diff = size - self.data.len();
        if diff > 0 {
            self.data.extend(std::iter::repeat(0).take(diff))
        }
    }
pub fn resize ( & mut self , size : usize ) { let diff = size - self . data . len ( ) ; if diff > 0 { self . data . extend ( std :: iter :: repeat ( 0 ) . take ( diff ) ) } }
Change the buffer size to size.
Change the buffer size to size .
&mut self
size
usize