Expand description
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
Implementations
sourceimpl<'a> Index<'a>
impl<'a> Index<'a>
sourcepub fn parse_sysv_index(buffer: &'a [u8]) -> Result<Self>
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
sourcepub fn parse_bsd_symdef(buffer: &'a [u8]) -> Result<Self>
pub fn parse_bsd_symdef(buffer: &'a [u8]) -> Result<Self>
Parses the given byte buffer into an Index, in BSD style archives
pub fn parse_windows_linker_member(buffer: &'a [u8]) -> Result<Self>
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more