Struct tar::GnuSparseHeader [−][src]
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]
impl GnuSparseHeader
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns true if block is empty
pub fn offset(&self) -> Result<u64>
[src]
pub fn offset(&self) -> Result<u64>
Offset of the block from the start of the file
Returns Err
for a malformed offset
field.
pub fn length(&self) -> Result<u64>
[src]
pub fn length(&self) -> Result<u64>
Length of the block
Returns Err
for a malformed numbytes
field.
Trait Implementations
impl Debug for GnuSparseHeader
[src]
impl Debug for GnuSparseHeader
Auto Trait Implementations
impl Send for GnuSparseHeader
impl Send for GnuSparseHeader
impl Sync for GnuSparseHeader
impl Sync for GnuSparseHeader