mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Code restyling.
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Aaru.Filesystems.ISO9660
|
||||
{
|
||||
static DecodedVolumeDescriptor DecodeVolumeDescriptor(PrimaryVolumeDescriptor pvd)
|
||||
{
|
||||
DecodedVolumeDescriptor decodedVD = new DecodedVolumeDescriptor
|
||||
var decodedVD = new DecodedVolumeDescriptor
|
||||
{
|
||||
SystemIdentifier = StringHandlers.CToString(pvd.system_id).TrimEnd(),
|
||||
VolumeIdentifier = StringHandlers.CToString(pvd.volume_id).TrimEnd(),
|
||||
@@ -50,12 +50,14 @@ namespace Aaru.Filesystems.ISO9660
|
||||
ApplicationIdentifier = StringHandlers.CToString(pvd.application_id).TrimEnd()
|
||||
};
|
||||
|
||||
if(pvd.creation_date[0] == '0' || pvd.creation_date[0] == 0x00) decodedVD.CreationTime = DateTime.MinValue;
|
||||
if(pvd.creation_date[0] == '0' ||
|
||||
pvd.creation_date[0] == 0x00)
|
||||
decodedVD.CreationTime = DateTime.MinValue;
|
||||
else
|
||||
decodedVD.CreationTime =
|
||||
DateHandlers.Iso9660ToDateTime(pvd.creation_date);
|
||||
decodedVD.CreationTime = DateHandlers.Iso9660ToDateTime(pvd.creation_date);
|
||||
|
||||
if(pvd.modification_date[0] == '0' || pvd.modification_date[0] == 0x00)
|
||||
if(pvd.modification_date[0] == '0' ||
|
||||
pvd.modification_date[0] == 0x00)
|
||||
decodedVD.HasModificationTime = false;
|
||||
else
|
||||
{
|
||||
@@ -63,14 +65,18 @@ namespace Aaru.Filesystems.ISO9660
|
||||
decodedVD.ModificationTime = DateHandlers.Iso9660ToDateTime(pvd.modification_date);
|
||||
}
|
||||
|
||||
if(pvd.expiration_date[0] == '0' || pvd.expiration_date[0] == 0x00) decodedVD.HasExpirationTime = false;
|
||||
if(pvd.expiration_date[0] == '0' ||
|
||||
pvd.expiration_date[0] == 0x00)
|
||||
decodedVD.HasExpirationTime = false;
|
||||
else
|
||||
{
|
||||
decodedVD.HasExpirationTime = true;
|
||||
decodedVD.ExpirationTime = DateHandlers.Iso9660ToDateTime(pvd.expiration_date);
|
||||
}
|
||||
|
||||
if(pvd.effective_date[0] == '0' || pvd.effective_date[0] == 0x00) decodedVD.HasEffectiveTime = false;
|
||||
if(pvd.effective_date[0] == '0' ||
|
||||
pvd.effective_date[0] == 0x00)
|
||||
decodedVD.HasEffectiveTime = false;
|
||||
else
|
||||
{
|
||||
decodedVD.HasEffectiveTime = true;
|
||||
@@ -90,6 +96,7 @@ namespace Aaru.Filesystems.ISO9660
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
|
||||
public readonly byte[] id;
|
||||
public readonly byte version;
|
||||
|
||||
// Only used in SVDs
|
||||
public readonly byte flags;
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
|
||||
@@ -99,6 +106,7 @@ namespace Aaru.Filesystems.ISO9660
|
||||
public readonly ulong reserved1;
|
||||
public readonly uint volume_space_size;
|
||||
public readonly uint volume_space_size_be;
|
||||
|
||||
// Only used in SVDs
|
||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
|
||||
public readonly byte[] escape_sequences;
|
||||
@@ -197,6 +205,7 @@ namespace Aaru.Filesystems.ISO9660
|
||||
public readonly ushort volume_sequence_number;
|
||||
public readonly ushort volume_sequence_number_be;
|
||||
public readonly byte name_len;
|
||||
|
||||
// Followed by name[name_len] and then system area until length arrives
|
||||
}
|
||||
|
||||
@@ -240,6 +249,7 @@ namespace Aaru.Filesystems.ISO9660
|
||||
public readonly byte xattr_len;
|
||||
public readonly uint start_lbn;
|
||||
public readonly ushort parent_dirno;
|
||||
|
||||
// Followed by name[name_len]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user