Struct rpak::PakHeader[][src]

pub struct PakHeader {
    pub table_offset: u32,
    pub table_size: u32,
}
Expand description

The PAK file header

Fields

table_offset: u32

Offset of the file table, from the start of the file

table_size: u32

Size of the file table

Implementations

Create a new PAK header with the given file table offset and size

Parse a PAK header from a byte slice.

Returns Err(()) if the PAK file header was invalid.

Return this PAK header as a byte vector.

Trait Implementations

Returns the “default value” for a type. Read more

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 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.