pub struct WadEntry {
pub id: u32,
pub offset: u32,
pub length: u32,
pub path: String,
pub created: NaiveDateTime,
pub accessed: NaiveDateTime,
pub written: NaiveDateTime,
}Expand description
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.
| Field | Type | Byte Size | Description |
|---|---|---|---|
| Unknown | [16; u8] | 16 | (Maybe hash-related.) |
| File Id | u32 | 4 | Index number. (This is implicit tho lol?) |
| Unknown | u32 | 4 | |
| File size | u32 | 4 | File size in the blob. |
| File offset | u32 | 4 | File offset in the blob. |
| Unknown | u32 | 4 | |
| Path size | u32 | 4 | Size of the path string that follows. |
| Path string | String | Path size | File path |
| Unknown | [16; u8] | 16 | (Maybe some kind of metadata like perms.) |
| Created | [7; u32] | 28 | Creation timestamp. |
| Accessed | [7; u32] | 28 | Access timestamp. |
| Written | [5; u32] | 20 | Write timestamp. |
§Timestamps
This describes the “created” and “accessed” fields. The “written” field is similar but only percise to minutes.
| Field | Type | Byte Size |
|---|---|---|
| Year | u32 | 4 |
| Month | u32 | 4 |
| Day | u32 | 4 |
| Hour | u32 | 4 |
| Minute | u32 | 4 |
| Second | u32 | 4 |
| Millisecond | u32 | 4 |
Fields§
§id: u32§offset: u32§length: u32§path: String§created: NaiveDateTime§accessed: NaiveDateTime§written: NaiveDateTimeTrait Implementations§
impl StructuralPartialEq for WadEntry
Auto Trait Implementations§
impl Freeze for WadEntry
impl RefUnwindSafe for WadEntry
impl Send for WadEntry
impl Sync for WadEntry
impl Unpin for WadEntry
impl UnwindSafe for WadEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more