#[repr(C)]pub struct BNCustomRelocationHandler {
pub context: *mut c_void,
pub freeObject: Option<unsafe extern "C" fn(ctxt: *mut c_void)>,
pub getRelocationInfo: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, arch: *mut BNArchitecture, result: *mut BNRelocationInfo, resultCount: usize) -> bool>,
pub applyRelocation: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, arch: *mut BNArchitecture, reloc: *mut BNRelocation, dest: *mut u8, len: usize) -> bool>,
pub getOperandForExternalRelocation: Option<unsafe extern "C" fn(ctxt: *mut c_void, data: *const u8, addr: u64, length: usize, il: *mut BNLowLevelILFunction, relocation: *mut BNRelocation) -> usize>,
}
Fields§
§context: *mut c_void
§freeObject: Option<unsafe extern "C" fn(ctxt: *mut c_void)>
§getRelocationInfo: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, arch: *mut BNArchitecture, result: *mut BNRelocationInfo, resultCount: usize) -> bool>
§applyRelocation: Option<unsafe extern "C" fn(ctxt: *mut c_void, view: *mut BNBinaryView, arch: *mut BNArchitecture, reloc: *mut BNRelocation, dest: *mut u8, len: usize) -> bool>
§getOperandForExternalRelocation: Option<unsafe extern "C" fn(ctxt: *mut c_void, data: *const u8, addr: u64, length: usize, il: *mut BNLowLevelILFunction, relocation: *mut BNRelocation) -> usize>
Trait Implementations§
source§impl Clone for BNCustomRelocationHandler
impl Clone for BNCustomRelocationHandler
source§fn clone(&self) -> BNCustomRelocationHandler
fn clone(&self) -> BNCustomRelocationHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BNCustomRelocationHandler
impl Debug for BNCustomRelocationHandler
source§impl Default for BNCustomRelocationHandler
impl Default for BNCustomRelocationHandler
impl Copy for BNCustomRelocationHandler
Auto Trait Implementations§
impl Freeze for BNCustomRelocationHandler
impl RefUnwindSafe for BNCustomRelocationHandler
impl !Send for BNCustomRelocationHandler
impl !Sync for BNCustomRelocationHandler
impl Unpin for BNCustomRelocationHandler
impl UnwindSafe for BNCustomRelocationHandler
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)