Struct dwarf::UnitCommon [] [src]

pub struct UnitCommon<'a, E: Endian> {
    pub endian: E,
    pub version: u16,
    pub address_size: u8,
    pub offset_size: u8,
    pub abbrev_offset: u64,
    pub data: Cow<'a, [u8]>,
}

Fields

endian: E version: u16 address_size: u8 offset_size: u8 abbrev_offset: u64 data: Cow<'a, [u8]>

Methods

impl<'a, E: Endian> UnitCommon<'a, E>
[src]

fn read(r: &mut &'a [u8], endian: E) -> Result<(UnitCommon<'a, E>, &'a [u8])ReadError>

impl<'a, E: Endian> UnitCommon<'a, E>
[src]

fn abbrev(&self, debug_abbrev: &[u8]) -> Result<AbbrevHashReadError>

fn entries<'cursor>(&'a self, data_offset: usize, abbrev: &'cursor AbbrevHash) -> DieCursor<'cursor, 'a, 'a, E>

fn entry<'cursor>(&'a self, data_offset: usize, offset: usize, abbrev: &'cursor AbbrevHash) -> Option<DieCursor<'cursor, 'a, 'a, E>>

impl<'a, E: Endian> UnitCommon<'a, E>
[src]

fn write<W: Write>(&self, w: &mut W, len: usize) -> Result<()WriteError>

impl<'a, E: Endian> UnitCommon<'a, E>
[src]

fn data(&'a self) -> &'a [u8]

fn len(&self) -> usize

Trait Implementations

impl<'a, E: Eq + Endian> Eq for UnitCommon<'a, E>
[src]

impl<'a, E: PartialEq + Endian> PartialEq for UnitCommon<'a, E>
[src]

fn eq(&self, __arg_0: &UnitCommon<'a, E>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &UnitCommon<'a, E>) -> bool

This method tests for !=.

impl<'a, E: Debug + Endian> Debug for UnitCommon<'a, E>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a, E: Endian + Default> Default for UnitCommon<'a, E>
[src]

fn default() -> Self

Returns the "default value" for a type. Read more