Use new marshaller in QEMU Enhanced Disk image.

This commit is contained in:
2019-03-15 23:00:12 +00:00
parent ffcb0da697
commit 7a3df6113b
3 changed files with 16 additions and 18 deletions

View File

@@ -45,9 +45,9 @@ namespace DiscImageChef.DiscImages
if(stream.Length < 512) return false;
byte[] qHdrB = new byte[64];
stream.Read(qHdrB, 0, 64);
qHdr = Marshal.ByteArrayToStructureLittleEndian<QedHeader>(qHdrB);
byte[] qHdrB = new byte[68];
stream.Read(qHdrB, 0, 68);
qHdr = Marshal.SpanToStructureLittleEndian<QedHeader>(qHdrB);
return qHdr.magic == QED_MAGIC;
}