Struct cbm::disk::D81[][src]

pub struct D81 { /* fields omitted */ }

Represent a 1581 disk image in D81 format. Geometries for this disk image type can describe images with and without attached error tables.

Methods

impl D81
[src]

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

Create a new D81 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 D81 disk image.

Return the geometry for D81 disks.

Trait Implementations

impl Disk for D81
[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 D81

impl !Sync for D81