mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
Code styling.
This commit is contained in:
@@ -47,13 +47,17 @@ namespace DiscImageChef.CommonTypes.Metadata
|
||||
[XmlRoot("DicResume", Namespace = "", IsNullable = false)]
|
||||
public class Resume
|
||||
{
|
||||
[XmlElement(DataType = "dateTime")] public DateTime CreationDate;
|
||||
[XmlElement(DataType = "dateTime")] public DateTime LastWriteDate;
|
||||
public bool Removable;
|
||||
public ulong LastBlock;
|
||||
public ulong NextBlock;
|
||||
[XmlElement(DataType = "dateTime")]
|
||||
public DateTime CreationDate;
|
||||
[XmlElement(DataType = "dateTime")]
|
||||
public DateTime LastWriteDate;
|
||||
public bool Removable;
|
||||
public ulong LastBlock;
|
||||
public ulong NextBlock;
|
||||
|
||||
[XmlArrayItem("DumpTry")] public List<DumpHardwareType> Tries;
|
||||
[XmlArrayItem("Block")] public List<ulong> BadBlocks;
|
||||
[XmlArrayItem("DumpTry")]
|
||||
public List<DumpHardwareType> Tries;
|
||||
[XmlArrayItem("Block")]
|
||||
public List<ulong> BadBlocks;
|
||||
}
|
||||
}
|
||||
@@ -142,34 +142,41 @@ namespace DiscImageChef.CommonTypes.Metadata
|
||||
|
||||
public class ChecksumStats
|
||||
{
|
||||
[XmlAttribute] public string algorithm;
|
||||
[XmlText] public double Value;
|
||||
[XmlAttribute]
|
||||
public string algorithm;
|
||||
[XmlText]
|
||||
public double Value;
|
||||
}
|
||||
|
||||
public class BenchmarkStats
|
||||
{
|
||||
public double All;
|
||||
[XmlElement("Checksum")] public List<ChecksumStats> Checksum;
|
||||
public double Entropy;
|
||||
public long MaxMemory;
|
||||
public long MinMemory;
|
||||
public double Sequential;
|
||||
public double All;
|
||||
[XmlElement("Checksum")]
|
||||
public List<ChecksumStats> Checksum;
|
||||
public double Entropy;
|
||||
public long MaxMemory;
|
||||
public long MinMemory;
|
||||
public double Sequential;
|
||||
}
|
||||
|
||||
public class MediaStats
|
||||
{
|
||||
[XmlAttribute] public bool real;
|
||||
[XmlAttribute] public string type;
|
||||
[XmlText] public long Value;
|
||||
[XmlAttribute]
|
||||
public bool real;
|
||||
[XmlAttribute]
|
||||
public string type;
|
||||
[XmlText]
|
||||
public long Value;
|
||||
}
|
||||
|
||||
public class DeviceStats
|
||||
{
|
||||
[XmlIgnore] public bool ManufacturerSpecified;
|
||||
public string Manufacturer { get; set; }
|
||||
public string Model { get; set; }
|
||||
public string Revision { get; set; }
|
||||
public string Bus { get; set; }
|
||||
[XmlIgnore]
|
||||
public bool ManufacturerSpecified;
|
||||
public string Manufacturer { get; set; }
|
||||
public string Model { get; set; }
|
||||
public string Revision { get; set; }
|
||||
public string Bus { get; set; }
|
||||
}
|
||||
|
||||
public class NameValueStats
|
||||
|
||||
@@ -247,13 +247,19 @@ namespace DiscImageChef.CommonTypes.Structs
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public struct FileSystemId
|
||||
{
|
||||
[FieldOffset(0)] public bool IsInt;
|
||||
[FieldOffset(1)] public bool IsLong;
|
||||
[FieldOffset(2)] public bool IsGuid;
|
||||
[FieldOffset(0)]
|
||||
public bool IsInt;
|
||||
[FieldOffset(1)]
|
||||
public bool IsLong;
|
||||
[FieldOffset(2)]
|
||||
public bool IsGuid;
|
||||
|
||||
[FieldOffset(3)] public uint Serial32;
|
||||
[FieldOffset(3)] public ulong Serial64;
|
||||
[FieldOffset(3)] public Guid uuid;
|
||||
[FieldOffset(3)]
|
||||
public uint Serial32;
|
||||
[FieldOffset(3)]
|
||||
public ulong Serial64;
|
||||
[FieldOffset(3)]
|
||||
public Guid uuid;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user