Struct goblin::archive::Index [−][src]
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]
impl<'a> Index<'a>
pub fn parse_sysv_index(buffer: &'a [u8]) -> Result<Self>
[src]
pub fn parse_sysv_index(buffer: &'a [u8]) -> Result<Self>
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]
pub fn parse_bsd_symdef(buffer: &'a [u8]) -> Result<Self>
Parses the given byte buffer into an Index, in BSD style archives
Trait Implementations
impl<'a> Debug for Index<'a>
[src]
impl<'a> Debug for Index<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Default for Index<'a>
[src]
impl<'a> Default for Index<'a>