Struct tar::GnuSparseHeader [] [src]

pub struct GnuSparseHeader {
    pub offset: [u8; 12],
    pub numbytes: [u8; 12],
}

Description of the header of a spare entry.

Specifies the offset/number of bytes of a chunk of data in octal.

Fields

offset: [u8; 12] numbytes: [u8; 12]

Methods

impl GnuSparseHeader
[src]

fn is_empty(&self) -> bool

Returns true if block is empty

fn offset(&self) -> Result<u64>

Offset of the block from the start of the file

Returns Err for a malformed offset field.

fn length(&self) -> Result<u64>

Length of the block

Returns Err for a malformed numbytes field.