pub struct STXDiskHeader<'a> {
pub disk_id: &'a [u8],
pub version: u16,
pub tool_used: u16,
pub reserved_area_1: &'a [u8],
pub track_count: u8,
pub new_format: u8,
pub reserved_area_2: &'a [u8],
}Expand description
STXDiskHeader contains information about an Atari ST STX floppy disk image header 16 bytes
Fields§
§disk_id: &'a [u8]The disk identifier, “RSY\0”
version: u16The version of the disk image Usually version 3
tool_used: u16A 16-bit integer that indicates the tool used to create the image
reserved_area_1: &'a [u8]First reserved area, two reserved bytes
track_count: u8The number of tracks on the disk
new_format: u8Whether the disk is in the new format
reserved_area_2: &'a [u8]Second reserved area, four reserved bytes
Trait Implementations§
Source§impl<'a> Debug for STXDiskHeader<'a>
impl<'a> Debug for STXDiskHeader<'a>
Source§impl Display for STXDiskHeader<'_>
Format a STXDiskHeader for display
impl Display for STXDiskHeader<'_>
Format a STXDiskHeader for display
Source§impl SanityCheck for STXDiskHeader<'_>
Perform sanity checks for a disk header
For now, these are done post-parsing of the section
These are generally less strict than things like magic number identification
but are good indicators the data may be corrupted
impl SanityCheck for STXDiskHeader<'_>
Perform sanity checks for a disk header For now, these are done post-parsing of the section These are generally less strict than things like magic number identification but are good indicators the data may be corrupted
Auto Trait Implementations§
impl<'a> Freeze for STXDiskHeader<'a>
impl<'a> RefUnwindSafe for STXDiskHeader<'a>
impl<'a> Send for STXDiskHeader<'a>
impl<'a> Sync for STXDiskHeader<'a>
impl<'a> Unpin for STXDiskHeader<'a>
impl<'a> UnsafeUnpin for STXDiskHeader<'a>
impl<'a> UnwindSafe for STXDiskHeader<'a>
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