mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Code restyling.
This commit is contained in:
@@ -40,95 +40,47 @@ namespace Aaru.DiscImages
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct D88Header
|
||||
{
|
||||
/// <summary>
|
||||
/// Disk name, nul-terminated ASCII
|
||||
/// ディスクの名前(ASCII + '\0')
|
||||
/// </summary>
|
||||
/// <summary>Disk name, nul-terminated ASCII ディスクの名前(ASCII + '\0')</summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 17)]
|
||||
public byte[] name;
|
||||
/// <summary>
|
||||
/// Reserved
|
||||
/// ディスクの名前(ASCII + '\0')
|
||||
/// </summary>
|
||||
public readonly byte[] name;
|
||||
/// <summary>Reserved ディスクの名前(ASCII + '\0')</summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 9)]
|
||||
public byte[] reserved;
|
||||
/// <summary>
|
||||
/// Write protect status
|
||||
/// ライトプロテクト: 0x00 なし、0x10 あり
|
||||
/// </summary>
|
||||
public byte write_protect;
|
||||
/// <summary>
|
||||
/// Disk type
|
||||
/// ディスクの種類: 0x00 2D、 0x10 2DD、 0x20 2HD
|
||||
/// </summary>
|
||||
public DiskType disk_type;
|
||||
/// <summary>
|
||||
/// Disk image size
|
||||
/// ディスクのサイズ
|
||||
/// </summary>
|
||||
public int disk_size;
|
||||
/// <summary>
|
||||
/// Track pointers
|
||||
/// トラック部のオフセットテーブル 0 Track ~ 163 Track
|
||||
/// </summary>
|
||||
public readonly byte[] reserved;
|
||||
/// <summary>Write protect status ライトプロテクト: 0x00 なし、0x10 あり</summary>
|
||||
public readonly byte write_protect;
|
||||
/// <summary>Disk type ディスクの種類: 0x00 2D、 0x10 2DD、 0x20 2HD</summary>
|
||||
public readonly DiskType disk_type;
|
||||
/// <summary>Disk image size ディスクのサイズ</summary>
|
||||
public readonly int disk_size;
|
||||
/// <summary>Track pointers トラック部のオフセットテーブル 0 Track ~ 163 Track</summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 164)]
|
||||
public int[] track_table;
|
||||
public readonly int[] track_table;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct SectorHeader
|
||||
{
|
||||
/// <summary>
|
||||
/// Cylinder
|
||||
/// ID の C
|
||||
/// </summary>
|
||||
public byte c;
|
||||
/// <summary>
|
||||
/// Head
|
||||
/// ID の H
|
||||
/// </summary>
|
||||
public byte h;
|
||||
/// <summary>
|
||||
/// Sector number
|
||||
/// ID の R
|
||||
/// </summary>
|
||||
public byte r;
|
||||
/// <summary>
|
||||
/// Sector size
|
||||
/// ID の N
|
||||
/// </summary>
|
||||
public IBMSectorSizeCode n;
|
||||
/// <summary>
|
||||
/// Number of sectors in this track
|
||||
/// このトラック内に存在するセクタの数
|
||||
/// </summary>
|
||||
public short spt;
|
||||
/// <summary>
|
||||
/// Density: 0x00 MFM, 0x40 FM
|
||||
/// 記録密度: 0x00 倍密度、0x40 単密度
|
||||
/// </summary>
|
||||
public DensityType density;
|
||||
/// <summary>
|
||||
/// Deleted sector, 0x00 not deleted, 0x10 deleted
|
||||
/// DELETED MARK: 0x00 ノーマル、 0x10 DELETED
|
||||
/// </summary>
|
||||
public byte deleted_mark;
|
||||
/// <summary>
|
||||
/// Sector status
|
||||
/// ステータス
|
||||
/// </summary>
|
||||
public byte status;
|
||||
/// <summary>
|
||||
/// Reserved
|
||||
/// リザーブ
|
||||
/// </summary>
|
||||
/// <summary>Cylinder ID の C</summary>
|
||||
public readonly byte c;
|
||||
/// <summary>Head ID の H</summary>
|
||||
public readonly byte h;
|
||||
/// <summary>Sector number ID の R</summary>
|
||||
public readonly byte r;
|
||||
/// <summary>Sector size ID の N</summary>
|
||||
public readonly IBMSectorSizeCode n;
|
||||
/// <summary>Number of sectors in this track このトラック内に存在するセクタの数</summary>
|
||||
public readonly short spt;
|
||||
/// <summary>Density: 0x00 MFM, 0x40 FM 記録密度: 0x00 倍密度、0x40 単密度</summary>
|
||||
public readonly DensityType density;
|
||||
/// <summary>Deleted sector, 0x00 not deleted, 0x10 deleted DELETED MARK: 0x00 ノーマル、 0x10 DELETED</summary>
|
||||
public readonly byte deleted_mark;
|
||||
/// <summary>Sector status ステータス</summary>
|
||||
public readonly byte status;
|
||||
/// <summary>Reserved リザーブ</summary>
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
|
||||
public byte[] reserved;
|
||||
/// <summary>
|
||||
/// Size of data following this field
|
||||
/// このセクタ部のデータサイズ
|
||||
/// </summary>
|
||||
public short size_of_data;
|
||||
public readonly byte[] reserved;
|
||||
/// <summary>Size of data following this field このセクタ部のデータサイズ</summary>
|
||||
public readonly short size_of_data;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user