Redo Reformat and cleanup.

Rider EAP was having a bug interpreting .editorconfig that didn't generate the code style as we wanted.
This is now done with Rider-stable.
This commit is contained in:
2023-10-04 17:34:40 +01:00
parent bc8bf7a2dc
commit 7363a5d9c5
453 changed files with 7241 additions and 7126 deletions

View File

@@ -67,7 +67,10 @@ public sealed partial class XFS
var sbpiece = new byte[Marshal.SizeOf<Superblock>()];
foreach(int location in new[] { 0, 0x200, 0x400 })
foreach(int location in new[]
{
0, 0x200, 0x400
})
{
Array.Copy(sector, location, sbpiece, 0, Marshal.SizeOf<Superblock>());
@@ -82,7 +85,10 @@ public sealed partial class XFS
}
else
{
foreach(int i in new[] { 0, 1, 2 })
foreach(int i in new[]
{
0, 1, 2
})
{
var location = (ulong)i;
@@ -135,13 +141,15 @@ public sealed partial class XFS
ErrorNumber errno = imagePlugin.ReadSectors(partition.Start, sbSize, out byte[] sector);
if(errno != ErrorNumber.NoError ||
sector.Length < Marshal.SizeOf<Superblock>())
if(errno != ErrorNumber.NoError || sector.Length < Marshal.SizeOf<Superblock>())
return;
var sbpiece = new byte[Marshal.SizeOf<Superblock>()];
foreach(int location in new[] { 0, 0x200, 0x400 })
foreach(int location in new[]
{
0, 0x200, 0x400
})
{
Array.Copy(sector, location, sbpiece, 0, Marshal.SizeOf<Superblock>());
@@ -156,7 +164,10 @@ public sealed partial class XFS
}
else
{
foreach(int i in new[] { 0, 1, 2 })
foreach(int i in new[]
{
0, 1, 2
})
{
var location = (ulong)i;
var sbSize = (uint)(Marshal.SizeOf<Superblock>() / imagePlugin.Info.SectorSize);
@@ -166,8 +177,7 @@ public sealed partial class XFS
ErrorNumber errno = imagePlugin.ReadSectors(partition.Start + location, sbSize, out byte[] sector);
if(errno != ErrorNumber.NoError ||
sector.Length < Marshal.SizeOf<Superblock>())
if(errno != ErrorNumber.NoError || sector.Length < Marshal.SizeOf<Superblock>())
return;
xfsSb = Marshal.ByteArrayToStructureBigEndian<Superblock>(sector);