#[repr(C)]pub struct DirectoryRecordHeader {
pub len: u8,
pub extended_attr_record: u8,
pub extent: U32LsbMsb,
pub data_len: U32LsbMsb,
pub date_time: DirDateTime,
pub flags: u8,
pub file_unit_size: u8,
pub interleave_gap_size: u8,
pub volume_sequence_number: U16LsbMsb,
pub file_identifier_len: u8,
}Available on crate feature
sync only.Expand description
The header of a directory record, because the identifier is variable length (ECMA-119 9.1 fixed fields).
@hadris-spec ECMA-119:9.1 @hadris-compliance partial @hadris-note Fixed fields round-trip, but all identifier, flag, and semantic constraints are not yet validated. @hadris-tests directory::tests::directory_record_parse_roundtrip @hadris-fuzz iso_read
Fields§
§len: u8The len field.
extended_attr_record: u8The extended_attr_record field.
extent: U32LsbMsbThe LBA of the record
data_len: U32LsbMsbThe length of the data in bytes
date_time: DirDateTimeThe date_time field.
flags: u8The flags field.
file_unit_size: u8The file_unit_size field.
interleave_gap_size: u8The interleave_gap_size field.
volume_sequence_number: U16LsbMsbThe volume_sequence_number field.
file_identifier_len: u8The file_identifier_len field.
Implementations§
Source§impl DirectoryRecordHeader
impl DirectoryRecordHeader
Sourcepub fn from_bytes(bytes: &[u8]) -> &Self
pub fn from_bytes(bytes: &[u8]) -> &Self
Performs the from_bytes operation.
Sourcepub fn is_directory(&self) -> bool
pub fn is_directory(&self) -> bool
Performs the is_directory operation.
Trait Implementations§
Source§impl Clone for DirectoryRecordHeader
impl Clone for DirectoryRecordHeader
Source§fn clone(&self) -> DirectoryRecordHeader
fn clone(&self) -> DirectoryRecordHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DirectoryRecordHeader
Source§impl Debug for DirectoryRecordHeader
impl Debug for DirectoryRecordHeader
Source§impl Default for DirectoryRecordHeader
impl Default for DirectoryRecordHeader
impl Pod for DirectoryRecordHeader
Auto Trait Implementations§
impl Freeze for DirectoryRecordHeader
impl RefUnwindSafe for DirectoryRecordHeader
impl Send for DirectoryRecordHeader
impl Sync for DirectoryRecordHeader
impl Unpin for DirectoryRecordHeader
impl UnsafeUnpin for DirectoryRecordHeader
impl UnwindSafe for DirectoryRecordHeader
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.