mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Override Marshal.SizeOf in Helpers and use it instead of System's.
This commit is contained in:
@@ -37,6 +37,7 @@ using System.Text;
|
||||
using DiscImageChef.CommonTypes;
|
||||
using DiscImageChef.CommonTypes.Interfaces;
|
||||
using Schemas;
|
||||
using Marshal = DiscImageChef.Helpers.Marshal;
|
||||
|
||||
namespace DiscImageChef.Filesystems
|
||||
{
|
||||
@@ -63,7 +64,7 @@ namespace DiscImageChef.Filesystems
|
||||
if(imagePlugin.Info.Sectors != 800 && imagePlugin.Info.Sectors != 1600) return false;
|
||||
|
||||
byte[] sector = imagePlugin.ReadSector(0);
|
||||
AODOS_BootBlock bb = Helpers.Marshal.ByteArrayToStructureLittleEndian<AODOS_BootBlock>(sector);
|
||||
AODOS_BootBlock bb = Marshal.ByteArrayToStructureLittleEndian<AODOS_BootBlock>(sector);
|
||||
|
||||
return bb.identifier.SequenceEqual(AODOSIdentifier);
|
||||
}
|
||||
@@ -73,7 +74,7 @@ namespace DiscImageChef.Filesystems
|
||||
{
|
||||
Encoding = Encoding.GetEncoding("koi8-r");
|
||||
byte[] sector = imagePlugin.ReadSector(0);
|
||||
AODOS_BootBlock bb = Helpers.Marshal.ByteArrayToStructureLittleEndian<AODOS_BootBlock>(sector);
|
||||
AODOS_BootBlock bb = Marshal.ByteArrayToStructureLittleEndian<AODOS_BootBlock>(sector);
|
||||
|
||||
StringBuilder sbInformation = new StringBuilder();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user