[][src]Struct fable_format::WadEntry

pub struct WadEntry {
    pub id: u32,
    pub offset: u32,
    pub length: u32,
    pub path: String,
    pub created: NaiveDateTime,
    pub accessed: NaiveDateTime,
    pub written: NaiveDateTime,
}

A Wad entry with a file's metadata and the location of its contents.

Format Description

The entries start at the header's first entry offset and are repeated until the entry count.

FieldTypeByte SizeDescription
Unknown[16; u8]16(Maybe hash-related.)
File Idu324Index number. (This is implicit tho lol?)
Unknownu324
File sizeu324File size in the blob.
File offsetu324File offset in the blob.
Unknownu324
Path sizeu324Size of the path string that follows.
Path stringStringPath sizeFile path
Unknown[16; u8]16(Maybe some kind of metadata like perms.)
Created[7; u32]28Creation timestamp.
Accessed[7; u32]28Access timestamp.
Written[5; u32]20Write timestamp.

Timestamps

This is a description for the "created at" and "accessed at" fields. The "written at" field is similar but only percise to minutes.

FieldTypeByte Size
Yearu324
Monthu324
Dayu324
Houru324
Minuteu324
Secondu324
Millisecondu324

Fields

id: u32offset: u32length: u32path: Stringcreated: NaiveDateTimeaccessed: NaiveDateTimewritten: NaiveDateTime

Trait Implementations

impl Debug for WadEntry[src]

impl Entry for WadEntry[src]

impl PartialEq<WadEntry> for WadEntry[src]

impl StructuralPartialEq for WadEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.