pub fn load(&mut self, addr: PhysAddr, data: &[u8]) {
        assert!(self.len >= addr.0 as usize + data.len());

        let addr = addr.0 as usize;
        self.as_mut()[addr..addr + data.len()].copy_from_slice(data);
    }
/// Load the bytes stored in `data` into memory at physical address `addr`.
///
/// # Panics
///
/// Panics if `addr + data.len` is larger than the memory size `len`.
Load the bytes stored in `data` into memory at physical address `addr`.
Load the bytes stored in ` data ` into memory at physical address ` addr ` .
pub fn load(&mut self, addr: PhysAddr, data: &[u8]) {
        assert!(self.len >= addr.0 as usize + data.len());
        let addr = addr.0 as usize;
        self.as_mut()[addr..addr + data.len()].copy_from_slice(data);
    }
pub fn load ( & mut self , addr : PhysAddr , data : & [ u8 ] ) { assert ! ( self len addr 0 as usize data len ( ) ) ; let addr = addr . 0 as usize ; self . as_mut ( ) [ addr .. addr + data . len ( ) ] . copy_from_slice ( data ) ; }
Load the bytes stored in `data` into memory at physical address `addr`.
Load the bytes stored in ` data ` into memory at physical address ` addr ` .
&mut self
addr
PhysAddr
data
&[u8]
panics
Panics if `addr + data.len` is larger than the memory size `len`.
Panics if ` addr + data . len ` is larger than the memory size ` len ` .