[][src]Struct goblin::archive::Index

pub struct Index<'a> {
    pub size: usize,
    pub symbol_indexes: Vec<u32>,
    pub strtab: Vec<&'a str>,
}

The special index member signified by the name '/'. The data element contains a list of symbol indexes and symbol names, giving their offsets into the archive for a given name.

Fields

size: usize

Big Endian number of symbol_indexes and strings

symbol_indexes: Vec<u32>

Big Endian u32 index into the archive for this symbol (index in array is the index into the string table)

strtab: Vec<&'a str>

Set of zero-terminated strings indexed by above. Number of strings = self.size

Methods

impl<'a> Index<'a>[src]

pub fn parse_sysv_index(buffer: &'a [u8]) -> Result<Self>[src]

Parses the given byte buffer into an Index. NB: the buffer must be the start of the index

pub fn parse_bsd_symdef(buffer: &'a [u8]) -> Result<Self>[src]

Parses the given byte buffer into an Index, in BSD style archives

Trait Implementations

impl<'a> Default for Index<'a>[src]

impl<'a> Debug for Index<'a>[src]

Auto Trait Implementations

impl<'a> Send for Index<'a>

impl<'a> Sync for Index<'a>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.