pub struct FileHeader { /* private fields */ }
Expand description

Manipulate (create/parse) file headers.

A pack file header is made up of 12 bytes:

  • 4 bytes representing the length of the associated path
  • 8 bytes representing the length of the associated file

The maximum file length that can be stored in the header is about 18.4 Terabytes.

Implementations

Creates a pack file header.

Returns the current header as a vector of bytes

Trait Implementations

Extracts a file header from an array of 12 bytes.

The type returned in the event of a conversion error.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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.