[][src]Struct metagoblin::archive::Index

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

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, Global>

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

strtab: Vec<&'a str, Global>

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

Implementations

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

pub fn parse_sysv_index(buffer: &'a [u8]) -> Result<Index<'a>, Error>[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<Index<'a>, Error>[src]

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

pub fn parse_windows_linker_member(buffer: &'a [u8]) -> Result<Index<'a>, Error>[src]

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Index<'a>

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

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

impl<'a> Unpin for Index<'a>

impl<'a> UnwindSafe for Index<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.