binaryninjacore_sys

Struct BNCustomBinaryView

source
#[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

source§

fn clone(&self) -> BNCustomBinaryView

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BNCustomBinaryView

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BNCustomBinaryView

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for BNCustomBinaryView

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.