pub fn write_at<T>(&mut self, offset: u64, data: &[T])
    where
        T: bytemuck::Pod,
    {
        let data = bytemuck::cast_slice(data);
        self.resize_if_smaller(offset + data.len() as u64, true);
        self.write_impl(offset, data);
    }
/// Writes to the buffer at the given byte offset
Writes to the buffer at the given byte offset
Writes to the buffer at the given byte offset
pub fn write_at<T>(&mut self, offset: u64, data: &[T])
    where
        T: bytemuck::Pod,
    {
        let data = bytemuck::cast_slice(data);
        self.resize_if_smaller(offset + data.len() as u64, true);
        self.write_impl(offset, data);
    }
pub fn write_at < T > ( & mut self , offset : u64 , data : & [ T ] ) where T : bytemuck :: Pod , { let data = bytemuck :: cast_slice ( data ) ; self . resize_if_smaller ( offset + data . len ( ) as u64 , true ) ; self . write_impl ( offset , data ) ; }
Writes to the buffer at the given byte offset
Writes to the buffer at the given byte offset
&mut self
offset
u64
data
&[T]
&mut self
offset
u64
data
&[T]