diff --git a/Structs/Images.cs b/Structs/Images.cs index 464d1da..d1aab9b 100644 --- a/Structs/Images.cs +++ b/Structs/Images.cs @@ -128,44 +128,46 @@ namespace Aaru.CommonTypes.Structs } /// Track defining structure. - public struct Track + public class Track { - /// Track number, 1-started - public uint TrackSequence; - /// Partition type - public TrackType TrackType; - /// Track starting sector - public ulong TrackStartSector; - /// Track ending sector - public ulong TrackEndSector; - /// Track pre-gap - public ulong TrackPregap; - /// Session this track belongs to - public ushort TrackSession; + /// Indexes, 00 to 99 and sector offset + public Dictionary Indexes; + /// How many main channel / user data bytes are per sector in this track + public int TrackBytesPerSector; /// Information that does not find space in this struct public string TrackDescription; - /// Indexes, 00 to 99 and sector offset - public Dictionary Indexes; - /// Which filter stores this track - public IFilter TrackFilter; + /// Track ending sector + public ulong TrackEndSector; /// Which file stores this track public string TrackFile; /// Starting at which byte is this track stored public ulong TrackFileOffset; /// What kind of file is storing this track public string TrackFileType; - /// How many main channel / user data bytes are per sector in this track - public int TrackBytesPerSector; + /// Which filter stores this track + public IFilter TrackFilter; + /// Track pre-gap + public ulong TrackPregap; /// How many main channel bytes per sector are in the file with this track public int TrackRawBytesPerSector; - /// Which filter stores this track's subchannel - public IFilter TrackSubchannelFilter; + /// Track number, 1-started + public uint TrackSequence; + /// Session this track belongs to + public ushort TrackSession; + /// Track starting sector + public ulong TrackStartSector; /// Which file stores this track's subchannel public string TrackSubchannelFile; + /// Which filter stores this track's subchannel + public IFilter TrackSubchannelFilter; /// Starting at which byte are this track's subchannel stored public ulong TrackSubchannelOffset; /// Type of subchannel stored for this track public TrackSubchannelType TrackSubchannelType; + /// Partition type + public TrackType TrackType; + + public Track() => Indexes = new Dictionary(); } /// Floppy physical characteristics structure.