mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Aaru.Images] Reformat and cleanup.
This commit is contained in:
@@ -34,6 +34,38 @@ namespace Aaru.DiscImages;
|
||||
|
||||
public sealed partial class TeleDisk
|
||||
{
|
||||
#region Nested type: CommentBlockHeader
|
||||
|
||||
struct CommentBlockHeader
|
||||
{
|
||||
/// <summary>CRC of comment block after crc field</summary>
|
||||
public ushort Crc;
|
||||
/// <summary>Length of comment</summary>
|
||||
public ushort Length;
|
||||
public byte Year;
|
||||
public byte Month;
|
||||
public byte Day;
|
||||
public byte Hour;
|
||||
public byte Minute;
|
||||
public byte Second;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Nested type: DataHeader
|
||||
|
||||
struct DataHeader
|
||||
{
|
||||
/// <summary>Size of all data (encoded) + next field (1)</summary>
|
||||
public ushort DataSize;
|
||||
/// <summary>Encoding used for data block</summary>
|
||||
public byte DataEncoding;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Nested type: Header
|
||||
|
||||
struct Header
|
||||
{
|
||||
/// <summary>"TD" or "td" depending on compression</summary>
|
||||
@@ -58,31 +90,9 @@ public sealed partial class TeleDisk
|
||||
public ushort Crc;
|
||||
}
|
||||
|
||||
struct CommentBlockHeader
|
||||
{
|
||||
/// <summary>CRC of comment block after crc field</summary>
|
||||
public ushort Crc;
|
||||
/// <summary>Length of comment</summary>
|
||||
public ushort Length;
|
||||
public byte Year;
|
||||
public byte Month;
|
||||
public byte Day;
|
||||
public byte Hour;
|
||||
public byte Minute;
|
||||
public byte Second;
|
||||
}
|
||||
#endregion
|
||||
|
||||
struct TrackHeader
|
||||
{
|
||||
/// <summary>Sectors in the track, 0xFF if end of disk image (there is no spoon)</summary>
|
||||
public byte Sectors;
|
||||
/// <summary>Cylinder the head was on</summary>
|
||||
public byte Cylinder;
|
||||
/// <summary>Head/side used</summary>
|
||||
public byte Head;
|
||||
/// <summary>Lower byte of CRC of previous fields</summary>
|
||||
public byte Crc;
|
||||
}
|
||||
#region Nested type: SectorHeader
|
||||
|
||||
struct SectorHeader
|
||||
{
|
||||
@@ -100,11 +110,21 @@ public sealed partial class TeleDisk
|
||||
public byte Crc;
|
||||
}
|
||||
|
||||
struct DataHeader
|
||||
#endregion
|
||||
|
||||
#region Nested type: TrackHeader
|
||||
|
||||
struct TrackHeader
|
||||
{
|
||||
/// <summary>Size of all data (encoded) + next field (1)</summary>
|
||||
public ushort DataSize;
|
||||
/// <summary>Encoding used for data block</summary>
|
||||
public byte DataEncoding;
|
||||
/// <summary>Sectors in the track, 0xFF if end of disk image (there is no spoon)</summary>
|
||||
public byte Sectors;
|
||||
/// <summary>Cylinder the head was on</summary>
|
||||
public byte Cylinder;
|
||||
/// <summary>Head/side used</summary>
|
||||
public byte Head;
|
||||
/// <summary>Lower byte of CRC of previous fields</summary>
|
||||
public byte Crc;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user