/// Write one value to the memory at the specified address
Write one value to the memory at the specified address
Write one value to the memory at the specified address
pub fn write<T>(&mut self, addr: u16, val: T) {
        let addr = addr as usize;
        let buf = serialize(&val);
        self.memory[addr..addr + buf.len()].copy_from_slice(buf);
    }
pub fn write < T > ( & mut self , addr : u16 , val : T ) { let addr = addr as usize ; let buf = serialize ( & val ) ; self . memory [ addr .. addr + buf . len ( ) ] . copy_from_slice ( buf ) ; }
Write one value to the memory at the specified address
Write one value to the memory at the specified address
&mut self
addr
u16
val
T