[][src]Struct v8unpack4rs::container::ElemAddr

pub struct ElemAddr {
    pub elem_header_addr: u32,
    pub elem_data_addr: u32,
    pub fffffff: u32,
}

Is the structure and arrangement of data partitions in the container.

Fields

elem_header_addr: u32

The offset into the file where is the header block.

elem_data_addr: u32

The offset into the file where located data block.

fffffff: u32

Always equal V8_MAGIC_NUMBER.

Methods

impl ElemAddr[src]

pub const SIZE: u32[src]

The size of the data in the file, represented as C structures.

pub fn new(elem_data_addr: u32, elem_header_addr: u32) -> Self[src]

Creates a new instance of ElemAddr.

pub fn from_raw_parts<R>(rdr: &mut R) -> Result<Self> where
    R: Read + Seek
[src]

Creates an instance of ElemAddr from a stream of bytes.

pub fn into_bytes(self) -> Result<Vec<u8>>[src]

Converts ElemAddr an array of bytes

Trait Implementations

impl Default for ElemAddr[src]

impl Debug for ElemAddr[src]

Auto Trait Implementations

impl Send for ElemAddr

impl Sync for ElemAddr

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]