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
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<String>
Set of zero-terminated strings indexed by above. Number of strings = self.size
Methods
impl Index
[src]
fn parse<R: AsRef<[u8]>>(buffer: &R, size: usize) -> Result<Index>
Parses the given byte buffer into an Index. NB: the buffer must be the start of the index