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

pub struct Index {
    pub size: usize,
    pub symbol_indexes: Vec<u32>,
    pub strtab: Vec<String>,
}

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 Index
[src]

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

Trait Implementations

impl Debug for Index
[src]

Formats the value using the given formatter.

impl Default for Index
[src]

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