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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user