Expand description

image parser, parses disk images and ROM images The image_rider::disk_format::image module provides a set of common functions and trait definitions for reading disks and cartridges.

Enums§

  • DiskImage is the primary enumeration for holding disk images.
  • The result of heuristics to guess a disk image Certain disk images can be guessed accurately based on filenames This returns a guess that can be used to guide the parsing process Later versions can include a parser generator trait that returns the recommended parser The DiskImageGuess structures should have a field that contains the raw image data When A DiskImageGuess is created, it becomes the new owner of the image data

Traits§

  • A trait for disk or ROM image parsers New image guessers should implement this trait It’s also implemented for &u8
  • This trait provides convenient functions for getting and saving data for the parsed disk image data in a DiskImage
  • Test trait for getting parsing and ownership transferral working with DiskImageGuess

Functions§

  • Function to collect the actual disk image data from a disk image and return it as an Option<Vec> It should have more tests around the different disk types
  • Parse a disk image This attempts to parse the different file types supported by this library It returns the remaining input and a DiskImage
  • Parses a file given a filename, returning a DiskImage
  • Guess an image format from a filename. Builds and returns a DiskImageGuess for a given filename and file data.