/// Reads a u32 from the given address if it is present in the region
Reads a u32 from the given address if it is present in the region
Reads a u32 from the given address if it is present in the region
fn read_u32(&self, address: u64, endianness: gimli::RunTimeEndian) -> Option<u32> {
        let slice = self.read_slice(address..address + 4)?.try_into().unwrap();
        if gimli::Endianity::is_little_endian(endianness) {
            Some(u32::from_le_bytes(slice))
        } else {
            Some(u32::from_be_bytes(slice))
        }
    }
fn read_u32 ( & self , address : u64 , endianness : gimli :: RunTimeEndian ) -> Option < u32 > { let slice = self . read_slice ( address .. address + 4 ) ? . try_into ( ) . unwrap ( ) ; if gimli :: Endianity :: is_little_endian ( endianness ) { Some ( u32 :: from_le_bytes ( slice ) ) } else { Some ( u32 :: from_be_bytes ( slice ) ) } }
Reads a u32 from the given address if it is present in the region
Reads a u32 from the given address if it is present in the region
&self
address
u64
endianness
gimli::RunTimeEndian