pub enum Header {
GenericHeader(GenericHeader),
CustomHeader(CustomHeader),
None,
}Variants§
Implementations§
Source§impl Header
impl Header
pub fn parse_header( bytes: &[u8], file_path: &str, filesystem: &FileSystem, ) -> Header
pub fn bitness(&self) -> u32
pub fn endianness(&self) -> Endianness
pub fn entry_point(&self) -> u64
pub fn architecture(&self) -> Architecture
pub fn get_sections(&self) -> Vec<Section>
pub fn get_text_section(&self) -> Option<Section>
pub fn get_symbols(&self) -> Option<&HashMap<u64, String>>
pub fn symbol_to_address(&self, symbol: &str) -> Option<u64>
pub fn virtual_to_physical_address(&self, virtual_address: u64) -> Option<u64>
pub fn physical_to_virtual_address(&self, physical_address: u64) -> Option<u64>
pub fn get_decoder(&self) -> CsResult<Capstone>
pub fn get_encoder(&self) -> Result<Keystone, Error>
Trait Implementations§
Source§impl UserData for Header
impl UserData for Header
Source§fn add_fields<'lua, F: UserDataFields<Self>>(fields: &mut F)
fn add_fields<'lua, F: UserDataFields<Self>>(fields: &mut F)
Adds custom fields specific to this userdata.
Source§fn add_methods<'lua, M: UserDataMethods<Self>>(methods: &mut M)
fn add_methods<'lua, M: UserDataMethods<Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
Source§fn register(registry: &mut UserDataRegistry<Self>)
fn register(registry: &mut UserDataRegistry<Self>)
Registers this type for use in Lua. Read more
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.