Struct tar::GnuHeader[][src]

#[repr(C)]
pub struct GnuHeader { pub name: [u8; 100], pub mode: [u8; 8], pub uid: [u8; 8], pub gid: [u8; 8], pub size: [u8; 12], pub mtime: [u8; 12], pub cksum: [u8; 8], pub typeflag: [u8; 1], pub linkname: [u8; 100], pub magic: [u8; 6], pub version: [u8; 2], pub uname: [u8; 32], pub gname: [u8; 32], pub dev_major: [u8; 8], pub dev_minor: [u8; 8], pub atime: [u8; 12], pub ctime: [u8; 12], pub offset: [u8; 12], pub longnames: [u8; 4], pub unused: [u8; 1], pub sparse: [GnuSparseHeader; 4], pub isextended: [u8; 1], pub realsize: [u8; 12], pub pad: [u8; 17], }

Representation of the header of an entry in an archive

Fields

Methods

impl GnuHeader
[src]

See Header::username_bytes

See Header::set_username

See Header::groupname_bytes

See Header::set_groupname

See Header::device_major

See Header::set_device_major

See Header::device_minor

See Header::set_device_minor

Returns the last modification time in Unix time format

Encodes the atime provided into this header.

Note that this time is typically a number of seconds passed since January 1, 1970.

Returns the last modification time in Unix time format

Encodes the ctime provided into this header.

Note that this time is typically a number of seconds passed since January 1, 1970.

Returns the "real size" of the file this header represents.

This is applicable for sparse files where the returned size here is the size of the entire file after the sparse regions have been filled in.

Indicates whether this header will be followed by additional sparse-header records.

Note that this is handled internally by this library, and is likely only interesting if a raw iterator is being used.

Views this as a normal Header

Views this as a normal Header

Trait Implementations

impl Debug for GnuHeader
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for GnuHeader

impl Sync for GnuHeader