#[repr(C)]pub struct BNCustomBinaryView {Show 24 fields
pub context: *mut c_void,
pub init: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> bool>,
pub freeObject: Option<unsafe extern "C" fn(ctxt: *mut c_void)>,
pub externalRefTaken: Option<unsafe extern "C" fn(ctxt: *mut c_void)>,
pub externalRefReleased: Option<unsafe extern "C" fn(ctxt: *mut c_void)>,
pub read: Option<unsafe extern "C" fn(ctxt: *mut c_void, dest: *mut c_void, offset: u64, len: usize) -> usize>,
pub write: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64, src: *const c_void, len: usize) -> usize>,
pub insert: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64, src: *const c_void, len: usize) -> usize>,
pub remove: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64, len: u64) -> usize>,
pub getModification: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> BNModificationStatus>,
pub isValidOffset: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>,
pub isOffsetReadable: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>,
pub isOffsetWritable: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>,
pub isOffsetExecutable: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>,
pub isOffsetBackedByFile: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>,
pub getNextValidOffset: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> u64>,
pub getStart: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> u64>,
pub getLength: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> u64>,
pub getEntryPoint: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> u64>,
pub isExecutable: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> bool>,
pub getDefaultEndianness: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> BNEndianness>,
pub isRelocatable: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> bool>,
pub getAddressSize: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> usize>,
pub save: Option<unsafe extern "C" fn(ctxt: *mut c_void, accessor: *mut BNFileAccessor) -> bool>,
}
Fields§
§context: *mut c_void
§init: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> bool>
§freeObject: Option<unsafe extern "C" fn(ctxt: *mut c_void)>
§externalRefTaken: Option<unsafe extern "C" fn(ctxt: *mut c_void)>
§externalRefReleased: Option<unsafe extern "C" fn(ctxt: *mut c_void)>
§read: Option<unsafe extern "C" fn(ctxt: *mut c_void, dest: *mut c_void, offset: u64, len: usize) -> usize>
§write: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64, src: *const c_void, len: usize) -> usize>
§insert: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64, src: *const c_void, len: usize) -> usize>
§remove: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64, len: u64) -> usize>
§getModification: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> BNModificationStatus>
§isValidOffset: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>
§isOffsetReadable: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>
§isOffsetWritable: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>
§isOffsetExecutable: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>
§isOffsetBackedByFile: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> bool>
§getNextValidOffset: Option<unsafe extern "C" fn(ctxt: *mut c_void, offset: u64) -> u64>
§getStart: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> u64>
§getLength: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> u64>
§getEntryPoint: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> u64>
§isExecutable: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> bool>
§getDefaultEndianness: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> BNEndianness>
§isRelocatable: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> bool>
§getAddressSize: Option<unsafe extern "C" fn(ctxt: *mut c_void) -> usize>
§save: Option<unsafe extern "C" fn(ctxt: *mut c_void, accessor: *mut BNFileAccessor) -> bool>
Trait Implementations§
source§impl Clone for BNCustomBinaryView
impl Clone for BNCustomBinaryView
source§fn clone(&self) -> BNCustomBinaryView
fn clone(&self) -> BNCustomBinaryView
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 BNCustomBinaryView
impl Debug for BNCustomBinaryView
source§impl Default for BNCustomBinaryView
impl Default for BNCustomBinaryView
impl Copy for BNCustomBinaryView
Auto Trait Implementations§
impl Freeze for BNCustomBinaryView
impl RefUnwindSafe for BNCustomBinaryView
impl !Send for BNCustomBinaryView
impl !Sync for BNCustomBinaryView
impl Unpin for BNCustomBinaryView
impl UnwindSafe for BNCustomBinaryView
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
)