[Aaru.Images] Reformat and cleanup.

This commit is contained in:
2023-10-03 23:34:59 +01:00
parent 6ffde343ce
commit 2cfad87955
432 changed files with 12011 additions and 8261 deletions

View File

@@ -39,6 +39,25 @@ namespace Aaru.DiscImages;
[SuppressMessage("ReSharper", "UnusedType.Local")]
public sealed partial class Ndif
{
#region Nested type: BlockChunk
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct BlockChunk
{
/// <summary>Starting sector, 3 bytes</summary>
public uint sector;
/// <summary>Chunk type</summary>
public byte type;
/// <summary>Offset in start of chunk</summary>
public uint offset;
/// <summary>Length in bytes of chunk</summary>
public uint length;
}
#endregion
#region Nested type: ChunkHeader
[StructLayout(LayoutKind.Sequential, Pack = 1)]
readonly struct ChunkHeader
{
@@ -74,18 +93,9 @@ public sealed partial class Ndif
public readonly uint chunks;
}
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct BlockChunk
{
/// <summary>Starting sector, 3 bytes</summary>
public uint sector;
/// <summary>Chunk type</summary>
public byte type;
/// <summary>Offset in start of chunk</summary>
public uint offset;
/// <summary>Length in bytes of chunk</summary>
public uint length;
}
#endregion
#region Nested type: SegmentHeader
[StructLayout(LayoutKind.Sequential, Pack = 1)]
readonly struct SegmentHeader
@@ -99,4 +109,6 @@ public sealed partial class Ndif
/// <summary>Seems to be a CRC28 of this segment, unchecked</summary>
public readonly uint crc;
}
#endregion
}