Added support for Apple Extensions to ISO 9660.

This commit is contained in:
2017-10-09 09:48:28 +01:00
parent 1698f3264a
commit be104ae04a
3 changed files with 142 additions and 5 deletions

View File

@@ -363,6 +363,72 @@ namespace DiscImageChef.Filesystems.ISO9660
public byte[] reserved;
}
// Little-endian
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct AppleProDOSSystemUse
{
public ushort signature;
public byte length;
public AppleId id;
public byte type;
public ushort aux_type;
}
// Big-endian
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct AppleHFSSystemUse
{
public ushort signature;
public byte length;
public AppleId id;
public ushort type;
public ushort creator;
public ushort finder_flags;
}
// Little-endian
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct AppleProDOSOldSystemUse
{
public ushort signature;
public AppleOldId id;
public byte type;
public ushort aux_type;
}
// Big-endian
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct AppleHFSTypeCreatorSystemUse
{
public ushort signature;
public AppleOldId id;
public ushort type;
public ushort creator;
}
// Big-endian
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct AppleHFSIconSystemUse
{
public ushort signature;
public AppleOldId id;
public ushort type;
public ushort creator;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
public byte[] icon;
}
// Big-endian
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct AppleHFSOldSystemUse
{
public ushort signature;
public AppleOldId id;
public ushort type;
public ushort creator;
public ushort finder_flags;
}
struct DecodedVolumeDescriptor
{
public string SystemIdentifier;