pub struct DirEntry {
pub name: Name,
pub unk1: u32,
pub size: usize,
pub unk2: usize,
pub reserved_size: usize,
pub timestamp: u32,
pub offset: usize,
}Expand description
An entry in a .dir file,
Only three of the fields are actually used by the games: name, size, and offset.
Fields§
§name: NameThe name of the file.
unk1: u32There are only three files in 3rd/dt29 where this field is nonzero. In those cases, it looks like a timestamp pointing to 2009-08-12 21:58:33.
size: usizeThe size of the file data in the archive.
unk2: usizeUnknown. In many cases it is equal to size, but not always.
In other cases it is a power of two that is often fairly consistent with adjacent files, but is wholly uncorrelated with any file sizes.
reserved_size: usizeUsually equal to size, but in SC/dt31 it is bigger. The difference is filled with null bytes.
timestamp: u32A unix timestamp, presumably when the file was last edited. Timezone is unknown.
offset: usizeOffset in the .dat file where the data starts.
Trait Implementations§
impl Eq for DirEntry
impl StructuralPartialEq for DirEntry
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
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