fn r16(&mut self, offset: u32) -> MemResult<u16> {
        if offset & 0x3 != 0 {
            Err(MemException::Misaligned)
        } else {
            self.r32(offset).map(|v| v as u16)
        }
    }
/// Read a 16 bit value at a given offset
Read a 16 bit value at a given offset
Read a 16 bit value at a given offset
fn r16(&mut self, offset: u32) -> MemResult<u16> {
        if offset & 0x3 != 0 {
            Err(MemException::Misaligned)
        } else {
            self.r32(offset).map(|v| v as u16)
        }
    }
fn r16 ( & mut self , offset : u32 ) -> MemResult < u16 > { if offset & 0x3 != 0 { Err ( MemException :: Misaligned ) } else { self . r32 ( offset ) . map ( | v | v as u16 ) } }
Read a 16 bit value at a given offset
Read a 16 bit value at a given offset
&mut self
offset
u32
&mut self
offset
u32