pub struct BinaryViewType {
pub handle: *mut BNBinaryViewType,
}Expand description
A BinaryViewType acts as a factory for BinaryView objects.
Each file format will have its own type, such as PE, ELF, or Mach-O.
Fields§
§handle: *mut BNBinaryViewTypeImplementations§
Source§impl BinaryViewType
impl BinaryViewType
pub fn list_all() -> Array<BinaryViewType>
Sourcepub fn valid_types_for_data(data: &BinaryView) -> Array<BinaryViewType>
pub fn valid_types_for_data(data: &BinaryView) -> Array<BinaryViewType>
Enumerates all view types and checks to see if the given raw BinaryView is valid,
returning only those that are.
Trait Implementations§
Source§impl AsRef<BinaryViewType> for BinaryViewType
impl AsRef<BinaryViewType> for BinaryViewType
Source§impl BinaryViewTypeBase for BinaryViewType
impl BinaryViewTypeBase for BinaryViewType
Source§fn is_valid_for(&self, data: &BinaryView) -> bool
fn is_valid_for(&self, data: &BinaryView) -> bool
Source§fn is_deprecated(&self) -> bool
fn is_deprecated(&self) -> bool
Is this
BinaryViewType deprecated and should not be used? Read moreSource§fn is_force_loadable(&self) -> bool
fn is_force_loadable(&self) -> bool
Is this
BinaryViewType able to be loaded forcefully? Read morefn load_settings_for_data(&self, data: &BinaryView) -> Option<Ref<Settings>>
fn default_load_settings_for_data( &self, data: &BinaryView, ) -> Option<Ref<Settings>>
Source§impl Clone for BinaryViewType
impl Clone for BinaryViewType
Source§fn clone(&self) -> BinaryViewType
fn clone(&self) -> BinaryViewType
Returns a duplicate 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 CoreArrayProvider for BinaryViewType
impl CoreArrayProvider for BinaryViewType
Source§impl Debug for BinaryViewType
impl Debug for BinaryViewType
Source§impl Hash for BinaryViewType
impl Hash for BinaryViewType
Source§impl PartialEq for BinaryViewType
impl PartialEq for BinaryViewType
impl Copy for BinaryViewType
impl Eq for BinaryViewType
impl Send for BinaryViewType
impl StructuralPartialEq for BinaryViewType
impl Sync for BinaryViewType
Auto Trait Implementations§
impl Freeze for BinaryViewType
impl RefUnwindSafe for BinaryViewType
impl Unpin for BinaryViewType
impl UnwindSafe for BinaryViewType
Blanket Implementations§
Source§impl<T> BinaryViewTypeExt for Twhere
T: BinaryViewTypeBase,
impl<T> BinaryViewTypeExt for Twhere
T: BinaryViewTypeBase,
fn name(&self) -> String
fn long_name(&self) -> String
fn register_arch<A: Architecture>( &self, id: u32, endianness: Endianness, arch: &A, )
fn register_platform(&self, id: u32, plat: &Platform)
Source§fn register_platform_recognizer<R>(
&self,
id: u32,
endian: Endianness,
recognizer: R,
)
fn register_platform_recognizer<R>( &self, id: u32, endian: Endianness, recognizer: R, )
Expanded identification of
Platform for BinaryViewType’s. Supersedes BinaryViewTypeExt::register_arch
and BinaryViewTypeExt::register_platform, as these have certain edge cases (overloaded elf families, for example)
that can’t be represented. Read morefn open(&self, data: &BinaryView) -> Result<Ref<BinaryView>>
fn parse(&self, data: &BinaryView) -> Result<Ref<BinaryView>>
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more