mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Final cleanup of DiscImageChef.Filesystems.
This commit is contained in:
@@ -43,6 +43,8 @@ namespace DiscImageChef.Filesystems
|
||||
{
|
||||
public class ECMA67 : Filesystem
|
||||
{
|
||||
readonly byte[] ECMA67_Magic = {0x56, 0x4F, 0x4C};
|
||||
|
||||
public ECMA67()
|
||||
{
|
||||
Name = "ECMA-67";
|
||||
@@ -64,27 +66,6 @@ namespace DiscImageChef.Filesystems
|
||||
CurrentEncoding = encoding ?? Encoding.GetEncoding("iso-8859-1");
|
||||
}
|
||||
|
||||
readonly byte[] ECMA67_Magic = {0x56, 0x4F, 0x4C};
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct VolumeLabel
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)] public byte[] labelIdentifier;
|
||||
public byte labelNumber;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)] public byte[] volumeIdentifier;
|
||||
public byte volumeAccessibility;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 26)] public byte[] reserved1;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 14)] public byte[] owner;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)] public byte[] reserved2;
|
||||
public byte surface;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)] public byte[] reserved3;
|
||||
public byte recordLength;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)] public byte[] reserved4;
|
||||
public byte fileLabelAllocation;
|
||||
public byte labelStandardVersion;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 48)] public byte[] reserved5;
|
||||
}
|
||||
|
||||
public override bool Identify(ImagePlugin imagePlugin, Partition partition)
|
||||
{
|
||||
if(partition.Start > 0) return false;
|
||||
@@ -191,5 +172,24 @@ namespace DiscImageChef.Filesystems
|
||||
{
|
||||
return Errno.NotImplemented;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
struct VolumeLabel
|
||||
{
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)] public byte[] labelIdentifier;
|
||||
public byte labelNumber;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)] public byte[] volumeIdentifier;
|
||||
public byte volumeAccessibility;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 26)] public byte[] reserved1;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 14)] public byte[] owner;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)] public byte[] reserved2;
|
||||
public byte surface;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)] public byte[] reserved3;
|
||||
public byte recordLength;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)] public byte[] reserved4;
|
||||
public byte fileLabelAllocation;
|
||||
public byte labelStandardVersion;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 48)] public byte[] reserved5;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user