pub struct OSI2 { /* private fields */ }Expand description
Raw bindings to the cosi plugin. It is not recommended to use these directly
Methods from Deref<Target = Osi2>§
Sourcepub fn ensure_init(&self)
pub fn ensure_init(&self)
Load the plugin and initialize it if it hasn’t been loaded already.
pub fn kaslr_offset(&self, cpu: &mut CPUState) -> target_ptr_t
pub fn current_cpu_offset(&self, cpu: &mut CPUState) -> target_ulong
pub fn free_cosi_str(&self, string: *mut c_char)
pub fn symbol_from_name( &self, name: *const c_char, ) -> Option<&'static VolatilitySymbol>
pub fn symbol_addr_from_name(&self, name: *const c_char) -> target_ptr_t
pub fn symbol_value_from_name(&self, name: *const c_char) -> target_ptr_t
pub fn addr_of_symbol(&self, symbol: &VolatilitySymbol) -> target_ptr_t
pub fn value_of_symbol(&self, symbol: &VolatilitySymbol) -> target_ptr_t
pub fn name_of_symbol(&self, symbol: &VolatilitySymbol) -> *mut c_char
pub fn type_from_name( &self, name: *const c_char, ) -> Option<&'static VolatilityStruct>
pub fn name_of_struct(&self, ty: &VolatilityStruct) -> *mut c_char
pub fn size_of_struct(&self, vol_struct: &VolatilityStruct) -> target_ulong
pub fn offset_of_field( &self, vol_struct: &VolatilityStruct, name: *const c_char, ) -> target_long
pub fn type_of_field( &self, vol_struct: &VolatilityStruct, name: *const c_char, ) -> *mut c_char
pub fn get_field_by_index( &self, ty: &VolatilityStruct, index: usize, ) -> *mut c_char
pub fn enum_from_name( &self, name: *const c_char, ) -> Option<&'static VolatilityEnum>
pub fn name_of_enum(&self, ty: &VolatilityEnum) -> *mut c_char
pub fn base_type_from_name( &self, name: *const c_char, ) -> Option<&'static VolatilityBaseType>
pub fn name_of_base_type(&self, ty: &VolatilityBaseType) -> *mut c_char
pub fn size_of_base_type(&self, ty: &VolatilityBaseType) -> target_ptr_t
pub fn is_base_type_signed(&self, ty: &VolatilityBaseType) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OSI2
impl RefUnwindSafe for OSI2
impl Send for OSI2
impl Sync for OSI2
impl Unpin for OSI2
impl UnwindSafe for OSI2
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