Struct goblin::archive::Archive
[−]
[src]
pub struct Archive { /* fields omitted */ }
An in-memory representation of a parsed Unix Archive
Methods
impl Archive
[src]
fn try_from(fd: &mut File) -> Result<Archive>
fn parse<R: Read + AsRef<[u8]>>(buffer: &R, size: usize) -> Result<Archive>
fn extract<'a, R: AsRef<[u8]>>(&self,
member: &str,
buffer: &'a R)
-> Result<&'a [u8]>
member: &str,
buffer: &'a R)
-> Result<&'a [u8]>
Returns a slice of the raw bytes for the given member
in the scrollable buffer
fn members(&self) -> Vec<&String>
fn member_of_symbol(&self, symbol: &str) -> Option<&str>
Returns the member's name which contains the given symbol
, if it is in the archive