pub struct OnDiskDirEntry<'a> { /* private fields */ }
Expand description
Represents a 32-byte directory entry as stored on-disk in a directory file.
Implementations§
Source§impl<'a> OnDiskDirEntry<'a>
impl<'a> OnDiskDirEntry<'a>
Represents the 32 byte directory entry. This is the same for FAT16 and FAT32 (except FAT16 doesn’t use first_cluster_hi).
Sourcepub fn create_time(&self) -> u16
pub fn create_time(&self) -> u16
Get the value from the $name field
Sourcepub fn create_date(&self) -> u16
pub fn create_date(&self) -> u16
Get the value from the $name field
Sourcepub fn last_access_data(&self) -> u16
pub fn last_access_data(&self) -> u16
Get the value from the $name field
Sourcepub fn first_cluster_hi(&self) -> u16
pub fn first_cluster_hi(&self) -> u16
Get the value from the $name field
Sourcepub fn write_time(&self) -> u16
pub fn write_time(&self) -> u16
Get the value from the $name field
Sourcepub fn write_date(&self) -> u16
pub fn write_date(&self) -> u16
Get the value from the $name field
Sourcepub fn first_cluster_lo(&self) -> u16
pub fn first_cluster_lo(&self) -> u16
Get the value from the $name field
Sourcepub fn new(data: &[u8]) -> OnDiskDirEntry<'_>
pub fn new(data: &[u8]) -> OnDiskDirEntry<'_>
Create a new on-disk directory entry from a block of 32 bytes read from a directory file.
Sourcepub fn lfn_contents(&self) -> Option<LfnEntry>
pub fn lfn_contents(&self) -> Option<LfnEntry>
If this is an LFN, get the contents so we can re-assemble the filename.
Sourcepub fn matches(&self, sfn: &ShortFileName) -> bool
pub fn matches(&self, sfn: &ShortFileName) -> bool
Does this on-disk entry match the given filename?
Sourcepub fn first_cluster_fat32(&self) -> ClusterId
pub fn first_cluster_fat32(&self) -> ClusterId
Which cluster, if any, does this file start at? Assumes this is from a FAT32 volume.