mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General code cleanup and style refactor.
This commit is contained in:
@@ -30,8 +30,6 @@
|
||||
// Copyright © 2011-2022 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes;
|
||||
@@ -42,6 +40,8 @@ using Claunia.Encoding;
|
||||
using Schemas;
|
||||
using Encoding = System.Text.Encoding;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
|
||||
// Information from Inside Macintosh Volume II
|
||||
public sealed partial class AppleMFS
|
||||
{
|
||||
@@ -56,7 +56,7 @@ public sealed partial class AppleMFS
|
||||
if(errno != ErrorNumber.NoError)
|
||||
return false;
|
||||
|
||||
var drSigWord = BigEndianBitConverter.ToUInt16(mdbSector, 0x000);
|
||||
ushort drSigWord = BigEndianBitConverter.ToUInt16(mdbSector, 0x000);
|
||||
|
||||
return drSigWord == MFS_MAGIC;
|
||||
}
|
||||
@@ -99,7 +99,7 @@ public sealed partial class AppleMFS
|
||||
mdb.drNxtFNum = BigEndianBitConverter.ToUInt32(mdbSector, 0x01E);
|
||||
mdb.drFreeBks = BigEndianBitConverter.ToUInt16(mdbSector, 0x022);
|
||||
mdb.drVNSiz = mdbSector[0x024];
|
||||
var variableSize = new byte[mdb.drVNSiz + 1];
|
||||
byte[] variableSize = new byte[mdb.drVNSiz + 1];
|
||||
Array.Copy(mdbSector, 0x024, variableSize, 0, mdb.drVNSiz + 1);
|
||||
mdb.drVN = StringHandlers.PascalToString(variableSize, Encoding);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user