fn resize_if_smaller(&mut self, size: u64, copy: bool) -> bool {
        if self.size >= size {
            return false;
        }
        self.resize_impl(size, copy);
        true
    }
// If the buffer is too small, resize it
If the buffer is too small, resize it
If the buffer is too small resize it
fn resize_if_smaller(&mut self, size: u64, copy: bool) -> bool {
        if self.size >= size {
            return false;
        }
        self.resize_impl(size, copy);
        true
    }
fn resize_if_smaller ( & mut self , size : u64 , copy : bool ) -> bool { if self . size >= size { return false ; } self . resize_impl ( size , copy ) ; true }
If the buffer is too small, resize it
If the buffer is too small resize it
&mut self
size
u64
copy
bool
&mut self
size
u64
copy
bool