Struct cbm::disk::Geometry [−][src]
pub struct Geometry { /* fields omitted */ }
A Geometry
specifies the track and sector layout of a disk image, and
also whether it has an error table appended or not.
Methods
impl Geometry
[src]
impl Geometry
pub fn find_by_size<'a>(
size: usize,
geometries: &'a [&'static Geometry]
) -> Option<&'a Geometry>
[src]
pub fn find_by_size<'a>(
size: usize,
geometries: &'a [&'static Geometry]
) -> Option<&'a Geometry>
Given a disk image file size, return the first matching geometry.
pub fn size(&self) -> usize
[src]
pub fn size(&self) -> usize
Return the total number of bytes used to represent a disk image in this geometry.
pub fn error_table_offset(&self) -> Option<usize>
[src]
pub fn error_table_offset(&self) -> Option<usize>
Return the offset of the error table, if one is present in this geometry.