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 get_decoder(&self) -> CsResult<Capstone>
pub fn get_encoder(&self) -> Result<Keystone, KeystoneError>
Trait Implementations§
source§impl PartialEq for Header
impl PartialEq for Header
source§impl UserData for Header
impl UserData for Header
source§fn add_fields<'lua, F: UserDataFields<'lua, Self>>(fields: &mut F)
fn add_fields<'lua, F: UserDataFields<'lua, Self>>(fields: &mut F)
Adds custom fields specific to this userdata.
source§fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
source§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.