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

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

Big Endian number of symbol_indexes and strings

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

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

Methods

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

[src]

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

[src]

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

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

[src]

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