[Aaru.Filesystems] Reformat and cleanup.

This commit is contained in:
2023-10-03 23:22:08 +01:00
parent 51f35c80d9
commit 7a608e0061
296 changed files with 21000 additions and 18286 deletions

View File

@@ -36,6 +36,8 @@ namespace Aaru.Filesystems;
// https://developer.apple.com/legacy/library/documentation/mac/pdf/Files/File_Manager.pdf
static partial class AppleCommon
{
#region Nested type: BootBlock
/// <summary>Should be sectors 0 and 1 in volume, followed by boot code</summary>
[StructLayout(LayoutKind.Sequential, Pack = 1)]
readonly struct BootBlock // Should be sectors 0 and 1 in volume
@@ -87,20 +89,44 @@ static partial class AppleCommon
public readonly uint bbSysHeapFract;
}
internal struct Rect
#endregion
#region Nested type: DInfo
internal struct DInfo
{
public ushort top;
public ushort left;
public ushort bottom;
public ushort right;
/// <summary>Position and dimensions of the folder's window.</summary>
public Rect frRect;
/// <summary>Flags.</summary>
public FinderFlags frFlags;
/// <summary>Folder's location in the parent folder.</summary>
public Point frLocation;
/// <summary>Finder view selected for folder.</summary>
public ushort frView;
}
internal struct Point
#endregion
#region Nested type: DXInfo
internal struct DXInfo
{
public ushort v;
public ushort h;
/// <summary>Scroll position for icon views.</summary>
public Point frScroll;
/// <summary>Directory ID chain of open folders.</summary>
public uint frOpenChain;
/// <summary>Extended flags. If high-bit is set, most significant byte is script code and least significant byte are flags.</summary>
public ExtendedFinderFlags frXFlags;
/// <summary>Resource fork ID of directory comment if high bit is clear.</summary>
public ushort frComment;
/// <summary>Put away folder ID.</summary>
public uint frPutAway;
}
#endregion
#region Nested type: FInfo
internal struct FInfo
{
/// <summary>The type of the file.</summary>
@@ -115,6 +141,10 @@ static partial class AppleCommon
public FinderFolder fdFldr;
}
#endregion
#region Nested type: FXInfo
internal struct FXInfo
{
/// <summary>Resource fork ID of file icon.</summary>
@@ -129,29 +159,27 @@ static partial class AppleCommon
public uint fdPutAway;
}
internal struct DInfo
#endregion
#region Nested type: Point
internal struct Point
{
/// <summary>Position and dimensions of the folder's window.</summary>
public Rect frRect;
/// <summary>Flags.</summary>
public FinderFlags frFlags;
/// <summary>Folder's location in the parent folder.</summary>
public Point frLocation;
/// <summary>Finder view selected for folder.</summary>
public ushort frView;
public ushort v;
public ushort h;
}
internal struct DXInfo
#endregion
#region Nested type: Rect
internal struct Rect
{
/// <summary>Scroll position for icon views.</summary>
public Point frScroll;
/// <summary>Directory ID chain of open folders.</summary>
public uint frOpenChain;
/// <summary>Extended flags. If high-bit is set, most significant byte is script code and least significant byte are flags.</summary>
public ExtendedFinderFlags frXFlags;
/// <summary>Resource fork ID of directory comment if high bit is clear.</summary>
public ushort frComment;
/// <summary>Put away folder ID.</summary>
public uint frPutAway;
public ushort top;
public ushort left;
public ushort bottom;
public ushort right;
}
#endregion
}