Package libsidplay.components.c1541
Klasse NIB
java.lang.Object
libsidplay.components.c1541.DiskImage
libsidplay.components.c1541.G64
libsidplay.components.c1541.NIB
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Feldübersicht
FelderModifizierer und TypFeldBeschreibung(Package privat) static final StringExpected G64 image header.private static final intprivate static final intprivate static final intNIB file track data length.private final byte[]MNIB file data of one track.private final byte[]NIB file header.private static final int[]Speed zone for each track (1-42).private final byte[]GCR data of one track.Von Klasse geerbte Felder libsidplay.components.c1541.DiskImage
DIR_TRACK_1541, EXT_TRACKS_1541, extendImageListener, fd, fileName, gcr, MAX_OVERALL_SECTORS, MAX_TRACKS_1541, MIN_TRACKS_1541, RAW_TRACK_SIZE, readOnly, SPEED_MAP_1541, tracks, trackSize -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungNIB(GCR gcr, String fileName, RandomAccessFile fd, boolean readOnly) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidattach()Read the image in G64 format and fill this GCR data and speed zone data.private booleanequals(byte[] gcrData, int from, int to, int length) private intextractGCRtrack(byte[] dest, byte[] src) Try to extract one complete cycle of GCR data from an 8kB buffer.private intfindSector0(byte[] gcrData, int tracklen) private intfindSectorGap(byte[] gcrData, int tracklen) private intfindSync(byte[] gcrData, int pos, int gcrEnd) private intfindTrackCycle(byte[] gcrData, NIB.TrackCycle cycle) voidgcrDataWriteback(int track) Write GCR data back to image.Von Klasse geerbte Methoden libsidplay.components.c1541.DiskImage
attach, detach, getDiskSector, isReadOnly, save, setExtendImagePolicy
-
Felddetails
-
IMAGE_HEADER
Expected G64 image header.- Siehe auch:
-
MNIB_TRACK_LENGTH
private static final int MNIB_TRACK_LENGTHNIB file track data length.- Siehe auch:
-
MATCH_LENGTH
private static final int MATCH_LENGTH- Siehe auch:
-
MIN_TRACK_LENGTH
private static final int MIN_TRACK_LENGTH- Siehe auch:
-
nibHeader
private final byte[] nibHeaderNIB file header. -
trackData
private final byte[] trackDataGCR data of one track. -
mnibTrackData
private final byte[] mnibTrackDataMNIB file data of one track. -
speed_map_1541
private static final int[] speed_map_1541Speed zone for each track (1-42).
-
-
Konstruktordetails
-
NIB
Constructor.- Parameter:
gcr- GCR supportfileName- disk image file namefd- file handle of the disk imagereadOnly- mount read-only?
-
-
Methodendetails
-
attach
Read the image in G64 format and fill this GCR data and speed zone data.- Setzt außer Kraft:
attachin KlasseG64- Löst aus:
IOException- disk image file could not be attached
-
extractGCRtrack
private int extractGCRtrack(byte[] dest, byte[] src) Try to extract one complete cycle of GCR data from an 8kB buffer. Align track to a sector gap if possible, else align to track 0, else copy cyclic loop from the beginning of a source. If buffer is pure nonsense, return tracklen = 0; [Input] destination buffer, source buffer [Return] length of copied track fragment -
findTrackCycle
-
equals
private boolean equals(byte[] gcrData, int from, int to, int length) -
findSector0
private int findSector0(byte[] gcrData, int tracklen) -
findSync
private int findSync(byte[] gcrData, int pos, int gcrEnd) -
findSectorGap
private int findSectorGap(byte[] gcrData, int tracklen) -
gcrDataWriteback
public void gcrDataWriteback(int track) Beschreibung aus Klasse kopiert:G64Write GCR data back to image.- Setzt außer Kraft:
gcrDataWritebackin KlasseG64- Parameter:
track- dirty track
-