Class UniversalDiskImageLayout


  • public class UniversalDiskImageLayout
    extends ByteArrayImageLayout
    Manages the physical 2IMG disk.
    • Constructor Detail

      • UniversalDiskImageLayout

        public UniversalDiskImageLayout​(byte[] diskImage)
        Construct a UniversalDiskImageLayout.
      • UniversalDiskImageLayout

        public UniversalDiskImageLayout​(byte[] diskImage,
                                        boolean changed)
        Construct a UniversalDiskImageLayout.
      • UniversalDiskImageLayout

        public UniversalDiskImageLayout​(int size)
        Construct a UniversalDiskImageLayout.
    • Method Detail

      • readBytes

        public byte[] readBytes​(int start,
                                int length)
        Extract a portion of the disk image.
        Overrides:
        readBytes in class ByteArrayImageLayout
      • writeBytes

        public void writeBytes​(int start,
                               byte[] bytes)
        Write data to the disk image.
        Overrides:
        writeBytes in class ByteArrayImageLayout