Struct goblin::archive::Member
[−]
[src]
pub struct Member { pub offset: u64, // some fields omitted }
Represents a single entry in the archive
Fields
offset: u64
File offset from the start of the archive to where the file begins
Methods
impl Member
[src]
fn parse<R: AsRef<[u8]>>(buffer: &R, offset: &mut usize) -> Result<Self>
Tries to parse the header in R
, as well as the offset in `R.
NOTE the Seek will be pointing at the first byte of whatever the file is, skipping padding.
This is because just like members in the archive, the data section is 2-byte aligned.
fn size(&self) -> usize
The size of the Member's content, in bytes. Does not include newline padding, nor the size of the file header.
fn name(&self) -> &str
The untrimmed raw member name, i.e., includes right-aligned space padding and '/'
end-of-string
identifier
Trait Implementations
impl Debug for Member
[src]
impl Clone for Member
[src]
fn clone(&self) -> Member
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more