Struct goblin::archive::Member []

pub struct Member<'a> {
    pub header: Header<'a>,
    pub header_offset: u64,
    pub offset: u64,
    // some fields omitted
}

Represents a single entry in the archive

Fields

The entry header

File offset from the start of the archive to where the header begins

File offset from the start of the archive to where the file begins

Methods

impl<'a> Member<'a>

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.

The size of the Member's content, in bytes. Does not include newline padding, nor the size of the file header.

The member name, accounting for SysV and BSD ar filename extensions

The untrimmed raw member name, i.e., includes right-aligned space padding and '/' end-of-string identifier

Trait Implementations

impl<'a> Debug for Member<'a>

Formats the value using the given formatter.

impl<'a> Clone for Member<'a>

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for Member<'a>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.