pub struct D64 {
pub data: Vec<u8>,
pub tracks: u8,
}Fields§
§data: Vec<u8>§tracks: u8Implementations§
Source§impl D64
impl D64
pub fn new(tracks: u8) -> Result<Self, D64Error>
pub fn format(&mut self, disk_name: &str, disk_id: &str) -> Result<(), D64Error>
pub fn from_file(path: &str) -> Result<Self, D64Error>
pub fn save_to_file(&self, path: &str) -> Result<(), D64Error>
pub fn read_sector(&self, track: u8, sector: u8) -> Result<&[u8], D64Error>
pub fn write_sector( &mut self, track: u8, sector: u8, data: &[u8], ) -> Result<(), D64Error>
pub fn trace_file(&self, filename: &str) -> Result<Vec<(u8, u8)>, D64Error>
pub fn list_files(&self) -> Result<Vec<String>, D64Error>
pub fn extract_file(&self, filename: &str) -> Result<Vec<u8>, D64Error>
pub fn insert_file( &mut self, filename: &str, content: &[u8], ) -> Result<(), D64Error>
pub fn read_bam(&self) -> Result<BAM, D64Error>
pub fn write_bam(&mut self, bam: &BAM) -> Result<(), D64Error>
pub fn allocate_sector(&mut self, track: u8, sector: u8) -> Result<(), D64Error>
pub fn free_sector(&mut self, track: u8, sector: u8) -> Result<(), D64Error>
pub fn find_free_sector(&self) -> Result<(u8, u8), D64Error>
Auto Trait Implementations§
impl Freeze for D64
impl RefUnwindSafe for D64
impl Send for D64
impl Sync for D64
impl Unpin for D64
impl UnwindSafe for D64
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