pub fn write<T>(&mut self, data: &[T])
    where
        T: bytemuck::Pod,
    {
        let data = bytemuck::cast_slice(data);

        self.resize_if_smaller(data.len() as u64, true);
        self.write_impl(0, data);
    }
// Writes the data to the buffer
// Resizes the buffer if the data is larger than the current buffer size
Writes the data to the buffer
Resizes the buffer if the data is larger than the current buffer size
Writes the data to the buffer Resizes the buffer if the data is larger than the current buffer size
pub fn write<T>(&mut self, data: &[T])
    where
        T: bytemuck::Pod,
    {
        let data = bytemuck::cast_slice(data);
        self.resize_if_smaller(data.len() as u64, true);
        self.write_impl(0, data);
    }
pub fn write < T > ( & mut self , data : & [ T ] ) where T : bytemuck :: Pod , { let data = bytemuck :: cast_slice ( data ) ; self . resize_if_smaller ( data . len ( ) as u64 , true ) ; self . write_impl ( 0 , data ) ; }
Writes the data to the buffer
Resizes the buffer if the data is larger than the current buffer size
Writes the data to the buffer Resizes the buffer if the data is larger than the current buffer size
&mut self
data
&[T]
&mut self
data
&[T]