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
Implementations
impl<'a> Index<'a>
[src]
pub fn parse_sysv_index(buffer: &'a [u8]) -> Result<Self>
[src]
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]
Parses the given byte buffer into an Index, in BSD style archives
pub fn parse_windows_linker_member(buffer: &'a [u8]) -> Result<Self>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,