Replace old bigendian marshaller with new one.

This commit is contained in:
2025-10-21 11:43:05 +01:00
parent 061669a255
commit 39f4ca2998
68 changed files with 188 additions and 336 deletions

View File

@@ -70,7 +70,7 @@ public sealed partial class XFS
{
Array.Copy(sector, location, sbpiece, 0, Marshal.SizeOf<Superblock>());
Superblock xfsSb = Marshal.ByteArrayToStructureBigEndianGenerated<Superblock>(sbpiece);
Superblock xfsSb = Marshal.ByteArrayToStructureBigEndian<Superblock>(sbpiece);
AaruLogging.Debug(MODULE_NAME,
Localization.magic_at_0_X3_equals_1_expected_2,
@@ -100,7 +100,7 @@ public sealed partial class XFS
if(sector.Length < Marshal.SizeOf<Superblock>()) return false;
Superblock xfsSb = Marshal.ByteArrayToStructureBigEndianGenerated<Superblock>(sector);
Superblock xfsSb = Marshal.ByteArrayToStructureBigEndian<Superblock>(sector);
AaruLogging.Debug(MODULE_NAME,
Localization.magic_at_0_equals_1_expected_2,
@@ -147,7 +147,7 @@ public sealed partial class XFS
{
Array.Copy(sector, location, sbpiece, 0, Marshal.SizeOf<Superblock>());
xfsSb = Marshal.ByteArrayToStructureBigEndianGenerated<Superblock>(sbpiece);
xfsSb = Marshal.ByteArrayToStructureBigEndian<Superblock>(sbpiece);
AaruLogging.Debug(MODULE_NAME,
Localization.magic_at_0_X3_equals_1_expected_2,
@@ -174,7 +174,7 @@ public sealed partial class XFS
if(errno != ErrorNumber.NoError || sector.Length < Marshal.SizeOf<Superblock>()) return;
xfsSb = Marshal.ByteArrayToStructureBigEndianGenerated<Superblock>(sector);
xfsSb = Marshal.ByteArrayToStructureBigEndian<Superblock>(sector);
AaruLogging.Debug(MODULE_NAME,
Localization.magic_at_0_equals_1_expected_2,