Struct cbm::disk::D64[][src]

pub struct D64 { /* fields omitted */ }

Represent a 1541 disk image in D64 format. Geometries for this disk image type can describe either 35-track or 40-track disks and images with and without attached error tables.

Methods

impl D64
[src]

Open an existing D64 disk image as read-only (if writable is false) or read-write (if writable is true).

Create a new D64 disk image. If create_new is true, no file is allowed to exist at the target location. If false, any existing file will be overwritten.

Create a new in-memory D64 disk image.

Return the 35-track geometry for D64 disks.

Return the 40-track geometry for D64 disks.

Trait Implementations

impl Disk for D64
[src]

Initialize the disk by reading the format metadata, if any. This may be called again, for example, when the BAM or header have been re-written. Read more

Format the disk image. Currently, this does not accurately reflect the exact formatting method used by the 1541/1571/1581 CBM DOS. Read more

Important traits for DirectoryIterator

Return an iterator of directory entries found on this disk image.

Return a list of all directory entries

Locate a directory entry based on its filename.

Return a DirectoryEntry representing the next free slot on the directory track. This entry may be used to create a new directory entry by populating its fields and passing it to write_directory_entry(). Read more

Write the the provide directory entry to disk, using the same slot as it was originally read from. Read more

Confirm that no directory entry currently exists with the provided filename. Read more

Rename a file.

Open a file based on its filename.

Open a file based on its directory entry.

Create a new file on the disk. It will be initialized as a closed zero-length file, and a file handle will be returned which may be used to provision a writer. Read more

Read a specific block from the disk, given its track and sector location. Read more

Write a block of data to a specific location on the disk.

Write a hex dump of the disk image to the provided writer.

Return the name of this disk as found in the disk header.

Check the consistency of the disk image. Unlike the "validate" ("v0:") command in CBM DOS, this is a read-only operation and does not attempt any repairs. A list of validation errors is returned. Read more

Return the blocks free based on the BAM free sector counts. (Not based on the BAM bitmaps, nor on the file sizes in the directory entries.) Read more

Auto Trait Implementations

impl !Send for D64

impl !Sync for D64