DexHeader

Struct DexHeader 

Source
pub struct DexHeader {
Show 23 fields pub version: [u8; 3], pub checksum: u32, pub signature: [u8; 20], pub file_size: u32, pub header_size: u32, pub endian_tag: u32, pub link_size: u32, pub link_off: u32, pub map_off: u32, pub string_ids_size: u32, pub string_ids_off: u32, pub type_ids_size: u32, pub type_ids_off: u32, pub proto_ids_size: u32, pub proto_ids_off: u32, pub fields_ids_size: u32, pub fields_ids_off: u32, pub method_ids_size: u32, pub method_ids_off: u32, pub class_defs_size: u32, pub class_defs_off: u32, pub data_size: u32, pub data_off: u32,
}
Expand description

Representation of the header of a DEX file

Fields§

§version: [u8; 3]§checksum: u32§signature: [u8; 20]§file_size: u32§header_size: u32§endian_tag: u32§link_size: u32§link_off: u32§map_off: u32§string_ids_size: u32§string_ids_off: u32§type_ids_size: u32§type_ids_off: u32§proto_ids_size: u32§proto_ids_off: u32§fields_ids_size: u32§fields_ids_off: u32§method_ids_size: u32§method_ids_off: u32§class_defs_size: u32§class_defs_off: u32§data_size: u32§data_off: u32

Implementations§

Source§

impl DexHeader

Source

pub fn new(dex_cursor: &mut DexReader) -> Result<DexHeader, DexError>

Reads from the given cursor and builds a DexHeader

Trait Implementations§

Source§

impl Debug for DexHeader

Source§

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

Formats the value using the given formatter. Read more

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> 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> Same for T

Source§

type Output = T

Should always be Self
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.