Struct goblin::archive::MemberHeader[][src]

#[repr(C)]
pub struct MemberHeader { pub identifier: [u8; 16], pub timestamp: [u8; 12], pub owner_id: [u8; 6], pub group_id: [u8; 6], pub mode: [u8; 8], pub file_size: [u8; 10], pub terminator: [u8; 2], }
Expand description

A Unix Archive Header - meta data for the file/byte blob/whatever that follows exactly after. All data is right-padded with spaces ASCII 0x20. The Binary layout is as follows:

OffsetLengthNameFormat
016File identifierASCII
1612File modification timestampDecimal
286Owner IDDecimal
346Group IDDecimal
408File modeOctal
4810Filesize in bytesDecimal
582Ending characters0x60 0x0A

Byte alignment is according to the following:

Each archive file member begins on an even byte boundary; a newline is inserted between files if necessary. Nevertheless, the size given reflects the actual size of the file exclusive of padding.

Fields

identifier: [u8; 16]

The identifier, or name for this file/whatever.

timestamp: [u8; 12]

The timestamp for when this file was last modified. Base 10 number

owner_id: [u8; 6]

The file’s owner’s id. Base 10 string number

group_id: [u8; 6]

The file’s group id. Base 10 string number

mode: [u8; 8]

The file’s permissions mode. Base 8 number number

file_size: [u8; 10]

The size of this file. Base 10 string number

terminator: [u8; 2]

The file header’s terminator, always 0x60 0x0A

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.