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:
321
Enums/Images.cs
321
Enums/Images.cs
@@ -44,11 +44,16 @@ namespace Aaru.CommonTypes.Enums
|
||||
public enum TrackType : byte
|
||||
{
|
||||
/// <summary>Audio track</summary>
|
||||
Audio = 0, /// <summary>Data track (not any of the below defined ones)</summary>
|
||||
Data = 1, /// <summary>Data track, compact disc mode 1</summary>
|
||||
CdMode1 = 2, /// <summary>Data track, compact disc mode 2, formless</summary>
|
||||
CdMode2Formless = 3, /// <summary>Data track, compact disc mode 2, form 1</summary>
|
||||
CdMode2Form1 = 4, /// <summary>Data track, compact disc mode 2, form 2</summary>
|
||||
Audio = 0,
|
||||
/// <summary>Data track (not any of the below defined ones)</summary>
|
||||
Data = 1,
|
||||
/// <summary>Data track, compact disc mode 1</summary>
|
||||
CdMode1 = 2,
|
||||
/// <summary>Data track, compact disc mode 2, formless</summary>
|
||||
CdMode2Formless = 3,
|
||||
/// <summary>Data track, compact disc mode 2, form 1</summary>
|
||||
CdMode2Form1 = 4,
|
||||
/// <summary>Data track, compact disc mode 2, form 2</summary>
|
||||
CdMode2Form2 = 5
|
||||
}
|
||||
|
||||
@@ -56,12 +61,16 @@ namespace Aaru.CommonTypes.Enums
|
||||
public enum TrackSubchannelType : byte
|
||||
{
|
||||
/// <summary>Track does not has subchannel dumped, or it's not a CD</summary>
|
||||
None = 0, /// <summary>Subchannel is packed and error corrected</summary>
|
||||
Packed = 1, /// <summary>Subchannel is interleaved</summary>
|
||||
Raw = 2, /// <summary>Subchannel is packed and comes interleaved with main channel in same file</summary>
|
||||
None = 0,
|
||||
/// <summary>Subchannel is packed and error corrected</summary>
|
||||
Packed = 1,
|
||||
/// <summary>Subchannel is interleaved</summary>
|
||||
Raw = 2,
|
||||
/// <summary>Subchannel is packed and comes interleaved with main channel in same file</summary>
|
||||
PackedInterleaved = 3,
|
||||
/// <summary>Subchannel is interleaved and comes interleaved with main channel in same file</summary>
|
||||
RawInterleaved = 4, /// <summary>Only Q subchannel is stored as 16 bytes</summary>
|
||||
RawInterleaved = 4,
|
||||
/// <summary>Only Q subchannel is stored as 16 bytes</summary>
|
||||
Q16 = 5,
|
||||
/// <summary>Only Q subchannel is stored as 16 bytes and comes interleaved with main channel in same file</summary>
|
||||
Q16Interleaved = 6
|
||||
@@ -71,19 +80,32 @@ namespace Aaru.CommonTypes.Enums
|
||||
public enum SectorTagType
|
||||
{
|
||||
/// <summary>Apple's GCR sector tags, 12 bytes</summary>
|
||||
AppleSectorTag = 0, /// <summary>Sync frame from CD sector, 12 bytes</summary>
|
||||
CdSectorSync = 1, /// <summary>CD sector header, 4 bytes</summary>
|
||||
CdSectorHeader = 2, /// <summary>CD mode 2 sector subheader</summary>
|
||||
CdSectorSubHeader = 3, /// <summary>CD sector EDC, 4 bytes</summary>
|
||||
CdSectorEdc = 4, /// <summary>CD sector ECC P, 172 bytes</summary>
|
||||
CdSectorEccP = 5, /// <summary>CD sector ECC Q, 104 bytes</summary>
|
||||
CdSectorEccQ = 6, /// <summary>CD sector ECC (P and Q), 276 bytes</summary>
|
||||
CdSectorEcc = 7, /// <summary>CD sector subchannel, 96 bytes</summary>
|
||||
CdSectorSubchannel = 8, /// <summary>CD track ISRC, string, 12 bytes</summary>
|
||||
CdTrackIsrc = 9, /// <summary>CD track text, string, 13 bytes</summary>
|
||||
CdTrackText = 10, /// <summary>CD track flags, 1 byte</summary>
|
||||
CdTrackFlags = 11, /// <summary>DVD sector copyright information</summary>
|
||||
DvdCmi = 12, /// <summary>Floppy address mark (contents depend on underlying floppy format)</summary>
|
||||
AppleSectorTag = 0,
|
||||
/// <summary>Sync frame from CD sector, 12 bytes</summary>
|
||||
CdSectorSync = 1,
|
||||
/// <summary>CD sector header, 4 bytes</summary>
|
||||
CdSectorHeader = 2,
|
||||
/// <summary>CD mode 2 sector subheader</summary>
|
||||
CdSectorSubHeader = 3,
|
||||
/// <summary>CD sector EDC, 4 bytes</summary>
|
||||
CdSectorEdc = 4,
|
||||
/// <summary>CD sector ECC P, 172 bytes</summary>
|
||||
CdSectorEccP = 5,
|
||||
/// <summary>CD sector ECC Q, 104 bytes</summary>
|
||||
CdSectorEccQ = 6,
|
||||
/// <summary>CD sector ECC (P and Q), 276 bytes</summary>
|
||||
CdSectorEcc = 7,
|
||||
/// <summary>CD sector subchannel, 96 bytes</summary>
|
||||
CdSectorSubchannel = 8,
|
||||
/// <summary>CD track ISRC, string, 12 bytes</summary>
|
||||
CdTrackIsrc = 9,
|
||||
/// <summary>CD track text, string, 13 bytes</summary>
|
||||
CdTrackText = 10,
|
||||
/// <summary>CD track flags, 1 byte</summary>
|
||||
CdTrackFlags = 11,
|
||||
/// <summary>DVD sector copyright information</summary>
|
||||
DvdCmi = 12,
|
||||
/// <summary>Floppy address mark (contents depend on underlying floppy format)</summary>
|
||||
FloppyAddressMark = 13
|
||||
}
|
||||
|
||||
@@ -91,77 +113,145 @@ namespace Aaru.CommonTypes.Enums
|
||||
public enum MediaTagType
|
||||
{
|
||||
/// <summary>CD table of contents</summary>
|
||||
CD_TOC = 0, /// <summary>CD session information</summary>
|
||||
CD_SessionInfo = 1, /// <summary>CD full table of contents</summary>
|
||||
CD_FullTOC = 2, /// <summary>CD PMA</summary>
|
||||
CD_PMA = 3, /// <summary>CD Adress-Time-In-Pregroove</summary>
|
||||
CD_ATIP = 4, /// <summary>CD-Text</summary>
|
||||
CD_TEXT = 5, /// <summary>CD Media Catalogue Number</summary>
|
||||
CD_MCN = 6, /// <summary>DVD/HD DVD Physical Format Information</summary>
|
||||
DVD_PFI = 7, /// <summary>DVD Lead-in Copyright Management Information</summary>
|
||||
DVD_CMI = 8, /// <summary>DVD disc key</summary>
|
||||
DVD_DiscKey = 9, /// <summary>DVD/HD DVD Burst Cutting Area</summary>
|
||||
DVD_BCA = 10, /// <summary>DVD/HD DVD Lead-in Disc Manufacturer Information</summary>
|
||||
DVD_DMI = 11, /// <summary>Media identifier</summary>
|
||||
DVD_MediaIdentifier = 12, /// <summary>Media key block</summary>
|
||||
DVD_MKB = 13, /// <summary>DVD-RAM/HD DVD-RAM DDS information</summary>
|
||||
DVDRAM_DDS = 14, /// <summary>DVD-RAM/HD DVD-RAM Medium status</summary>
|
||||
DVDRAM_MediumStatus = 15, /// <summary>DVD-RAM/HD DVD-RAM Spare area information</summary>
|
||||
DVDRAM_SpareArea = 16, /// <summary>DVD-R/-RW/HD DVD-R RMD in last border-out</summary>
|
||||
DVDR_RMD = 17, /// <summary>Pre-recorded information from DVD-R/-RW lead-in</summary>
|
||||
DVDR_PreRecordedInfo = 18, /// <summary>DVD-R/-RW/HD DVD-R media identifier</summary>
|
||||
DVDR_MediaIdentifier = 19, /// <summary>DVD-R/-RW/HD DVD-R physical format information</summary>
|
||||
DVDR_PFI = 20, /// <summary>ADIP information</summary>
|
||||
DVD_ADIP = 21, /// <summary>HD DVD Lead-in copyright protection information</summary>
|
||||
HDDVD_CPI = 22, /// <summary>HD DVD-R Medium Status</summary>
|
||||
HDDVD_MediumStatus = 23, /// <summary>DVD+/-R DL Layer capacity</summary>
|
||||
DVDDL_LayerCapacity = 24, /// <summary>DVD-R DL Middle Zone start address</summary>
|
||||
DVDDL_MiddleZoneAddress = 25, /// <summary>DVD-R DL Jump Interval Size</summary>
|
||||
DVDDL_JumpIntervalSize = 26, /// <summary>DVD-R DL Start LBA of the manual layer jump</summary>
|
||||
DVDDL_ManualLayerJumpLBA = 27, /// <summary>Blu-ray Disc Information</summary>
|
||||
BD_DI = 28, /// <summary>Blu-ray Burst Cutting Area</summary>
|
||||
BD_BCA = 29, /// <summary>Blu-ray Disc Definition Structure</summary>
|
||||
BD_DDS = 30, /// <summary>Blu-ray Cartridge Status</summary>
|
||||
BD_CartridgeStatus = 31, /// <summary>Blu-ray Status of Spare Area</summary>
|
||||
BD_SpareArea = 32, /// <summary>AACS volume identifier</summary>
|
||||
AACS_VolumeIdentifier = 33, /// <summary>AACS pre-recorded media serial number</summary>
|
||||
AACS_SerialNumber = 34, /// <summary>AACS media identifier</summary>
|
||||
AACS_MediaIdentifier = 35, /// <summary>Lead-in AACS media key block</summary>
|
||||
AACS_MKB = 36, /// <summary>AACS data keys</summary>
|
||||
AACS_DataKeys = 37, /// <summary>LBA extents flagged for bus encryption by AACS</summary>
|
||||
AACS_LBAExtents = 38, /// <summary>CPRM media key block in Lead-in</summary>
|
||||
AACS_CPRM_MKB = 39, /// <summary>Recognized layer formats in hybrid discs</summary>
|
||||
Hybrid_RecognizedLayers = 40, /// <summary>Disc write protection status</summary>
|
||||
MMC_WriteProtection = 41, /// <summary>Disc standard information</summary>
|
||||
MMC_DiscInformation = 42, /// <summary>Disc track resources information</summary>
|
||||
MMC_TrackResourcesInformation = 43, /// <summary>BD-R Pseudo-overwrite information</summary>
|
||||
MMC_POWResourcesInformation = 44, /// <summary>SCSI INQUIRY response</summary>
|
||||
SCSI_INQUIRY = 45, /// <summary>SCSI MODE PAGE 2Ah</summary>
|
||||
SCSI_MODEPAGE_2A = 46, /// <summary>ATA IDENTIFY DEVICE response</summary>
|
||||
ATA_IDENTIFY = 47, /// <summary>ATA IDENTIFY PACKET DEVICE response</summary>
|
||||
ATAPI_IDENTIFY = 48, /// <summary>PCMCIA/CardBus Card Information Structure</summary>
|
||||
PCMCIA_CIS = 49, /// <summary>SecureDigital CID</summary>
|
||||
SD_CID = 50, /// <summary>SecureDigital CSD</summary>
|
||||
SD_CSD = 51, /// <summary>SecureDigital SCR</summary>
|
||||
SD_SCR = 52, /// <summary>SecureDigital OCR</summary>
|
||||
SD_OCR = 53, /// <summary>MultiMediaCard CID</summary>
|
||||
MMC_CID = 54, /// <summary>MultiMediaCard CSD</summary>
|
||||
MMC_CSD = 55, /// <summary>MultiMediaCard OCR</summary>
|
||||
MMC_OCR = 56, /// <summary>MultiMediaCard Extended CSD</summary>
|
||||
MMC_ExtendedCSD = 57, /// <summary>Xbox Security Sector</summary>
|
||||
Xbox_SecuritySector = 58, /// <summary>
|
||||
CD_TOC = 0,
|
||||
/// <summary>CD session information</summary>
|
||||
CD_SessionInfo = 1,
|
||||
/// <summary>CD full table of contents</summary>
|
||||
CD_FullTOC = 2,
|
||||
/// <summary>CD PMA</summary>
|
||||
CD_PMA = 3,
|
||||
/// <summary>CD Adress-Time-In-Pregroove</summary>
|
||||
CD_ATIP = 4,
|
||||
/// <summary>CD-Text</summary>
|
||||
CD_TEXT = 5,
|
||||
/// <summary>CD Media Catalogue Number</summary>
|
||||
CD_MCN = 6,
|
||||
/// <summary>DVD/HD DVD Physical Format Information</summary>
|
||||
DVD_PFI = 7,
|
||||
/// <summary>DVD Lead-in Copyright Management Information</summary>
|
||||
DVD_CMI = 8,
|
||||
/// <summary>DVD disc key</summary>
|
||||
DVD_DiscKey = 9,
|
||||
/// <summary>DVD/HD DVD Burst Cutting Area</summary>
|
||||
DVD_BCA = 10,
|
||||
/// <summary>DVD/HD DVD Lead-in Disc Manufacturer Information</summary>
|
||||
DVD_DMI = 11,
|
||||
/// <summary>Media identifier</summary>
|
||||
DVD_MediaIdentifier = 12,
|
||||
/// <summary>Media key block</summary>
|
||||
DVD_MKB = 13,
|
||||
/// <summary>DVD-RAM/HD DVD-RAM DDS information</summary>
|
||||
DVDRAM_DDS = 14,
|
||||
/// <summary>DVD-RAM/HD DVD-RAM Medium status</summary>
|
||||
DVDRAM_MediumStatus = 15,
|
||||
/// <summary>DVD-RAM/HD DVD-RAM Spare area information</summary>
|
||||
DVDRAM_SpareArea = 16,
|
||||
/// <summary>DVD-R/-RW/HD DVD-R RMD in last border-out</summary>
|
||||
DVDR_RMD = 17,
|
||||
/// <summary>Pre-recorded information from DVD-R/-RW lead-in</summary>
|
||||
DVDR_PreRecordedInfo = 18,
|
||||
/// <summary>DVD-R/-RW/HD DVD-R media identifier</summary>
|
||||
DVDR_MediaIdentifier = 19,
|
||||
/// <summary>DVD-R/-RW/HD DVD-R physical format information</summary>
|
||||
DVDR_PFI = 20,
|
||||
/// <summary>ADIP information</summary>
|
||||
DVD_ADIP = 21,
|
||||
/// <summary>HD DVD Lead-in copyright protection information</summary>
|
||||
HDDVD_CPI = 22,
|
||||
/// <summary>HD DVD-R Medium Status</summary>
|
||||
HDDVD_MediumStatus = 23,
|
||||
/// <summary>DVD+/-R DL Layer capacity</summary>
|
||||
DVDDL_LayerCapacity = 24,
|
||||
/// <summary>DVD-R DL Middle Zone start address</summary>
|
||||
DVDDL_MiddleZoneAddress = 25,
|
||||
/// <summary>DVD-R DL Jump Interval Size</summary>
|
||||
DVDDL_JumpIntervalSize = 26,
|
||||
/// <summary>DVD-R DL Start LBA of the manual layer jump</summary>
|
||||
DVDDL_ManualLayerJumpLBA = 27,
|
||||
/// <summary>Blu-ray Disc Information</summary>
|
||||
BD_DI = 28,
|
||||
/// <summary>Blu-ray Burst Cutting Area</summary>
|
||||
BD_BCA = 29,
|
||||
/// <summary>Blu-ray Disc Definition Structure</summary>
|
||||
BD_DDS = 30,
|
||||
/// <summary>Blu-ray Cartridge Status</summary>
|
||||
BD_CartridgeStatus = 31,
|
||||
/// <summary>Blu-ray Status of Spare Area</summary>
|
||||
BD_SpareArea = 32,
|
||||
/// <summary>AACS volume identifier</summary>
|
||||
AACS_VolumeIdentifier = 33,
|
||||
/// <summary>AACS pre-recorded media serial number</summary>
|
||||
AACS_SerialNumber = 34,
|
||||
/// <summary>AACS media identifier</summary>
|
||||
AACS_MediaIdentifier = 35,
|
||||
/// <summary>Lead-in AACS media key block</summary>
|
||||
AACS_MKB = 36,
|
||||
/// <summary>AACS data keys</summary>
|
||||
AACS_DataKeys = 37,
|
||||
/// <summary>LBA extents flagged for bus encryption by AACS</summary>
|
||||
AACS_LBAExtents = 38,
|
||||
/// <summary>CPRM media key block in Lead-in</summary>
|
||||
AACS_CPRM_MKB = 39,
|
||||
/// <summary>Recognized layer formats in hybrid discs</summary>
|
||||
Hybrid_RecognizedLayers = 40,
|
||||
/// <summary>Disc write protection status</summary>
|
||||
MMC_WriteProtection = 41,
|
||||
/// <summary>Disc standard information</summary>
|
||||
MMC_DiscInformation = 42,
|
||||
/// <summary>Disc track resources information</summary>
|
||||
MMC_TrackResourcesInformation = 43,
|
||||
/// <summary>BD-R Pseudo-overwrite information</summary>
|
||||
MMC_POWResourcesInformation = 44,
|
||||
/// <summary>SCSI INQUIRY response</summary>
|
||||
SCSI_INQUIRY = 45,
|
||||
/// <summary>SCSI MODE PAGE 2Ah</summary>
|
||||
SCSI_MODEPAGE_2A = 46,
|
||||
/// <summary>ATA IDENTIFY DEVICE response</summary>
|
||||
ATA_IDENTIFY = 47,
|
||||
/// <summary>ATA IDENTIFY PACKET DEVICE response</summary>
|
||||
ATAPI_IDENTIFY = 48,
|
||||
/// <summary>PCMCIA/CardBus Card Information Structure</summary>
|
||||
PCMCIA_CIS = 49,
|
||||
/// <summary>SecureDigital CID</summary>
|
||||
SD_CID = 50,
|
||||
/// <summary>SecureDigital CSD</summary>
|
||||
SD_CSD = 51,
|
||||
/// <summary>SecureDigital SCR</summary>
|
||||
SD_SCR = 52,
|
||||
/// <summary>SecureDigital OCR</summary>
|
||||
SD_OCR = 53,
|
||||
/// <summary>MultiMediaCard CID</summary>
|
||||
MMC_CID = 54,
|
||||
/// <summary>MultiMediaCard CSD</summary>
|
||||
MMC_CSD = 55,
|
||||
/// <summary>MultiMediaCard OCR</summary>
|
||||
MMC_OCR = 56,
|
||||
/// <summary>MultiMediaCard Extended CSD</summary>
|
||||
MMC_ExtendedCSD = 57,
|
||||
/// <summary>Xbox Security Sector</summary>
|
||||
Xbox_SecuritySector = 58,
|
||||
/// <summary>
|
||||
/// On floppy disks, data in last cylinder usually in a different format that contains duplication or
|
||||
/// manufacturing information
|
||||
/// </summary>
|
||||
Floppy_LeadOut = 59, /// <summary>DVD Disc Control Blocks</summary>
|
||||
DCB = 60, /// <summary>Compact Disc First Track Pregap</summary>
|
||||
CD_FirstTrackPregap = 61, /// <summary>Compact Disc Lead-out</summary>
|
||||
CD_LeadOut = 62, /// <summary>SCSI MODE SENSE (6)</summary>
|
||||
SCSI_MODESENSE_6 = 63, /// <summary>SCSI MODE SENSE (10)</summary>
|
||||
SCSI_MODESENSE_10 = 64, /// <summary>USB descriptors</summary>
|
||||
USB_Descriptors = 65, /// <summary>XGD unlocked DMI</summary>
|
||||
Xbox_DMI = 66, /// <summary>XDG unlocked PFI</summary>
|
||||
Xbox_PFI = 67, /// <summary>Compact Disc Lead-in</summary>
|
||||
Floppy_LeadOut = 59,
|
||||
/// <summary>DVD Disc Control Blocks</summary>
|
||||
DCB = 60,
|
||||
/// <summary>Compact Disc First Track Pregap</summary>
|
||||
CD_FirstTrackPregap = 61,
|
||||
/// <summary>Compact Disc Lead-out</summary>
|
||||
CD_LeadOut = 62,
|
||||
/// <summary>SCSI MODE SENSE (6)</summary>
|
||||
SCSI_MODESENSE_6 = 63,
|
||||
/// <summary>SCSI MODE SENSE (10)</summary>
|
||||
SCSI_MODESENSE_10 = 64,
|
||||
/// <summary>USB descriptors</summary>
|
||||
USB_Descriptors = 65,
|
||||
/// <summary>XGD unlocked DMI</summary>
|
||||
Xbox_DMI = 66,
|
||||
/// <summary>XDG unlocked PFI</summary>
|
||||
Xbox_PFI = 67,
|
||||
/// <summary>Compact Disc Lead-in</summary>
|
||||
CD_LeadIn = 68
|
||||
}
|
||||
|
||||
@@ -169,9 +259,12 @@ namespace Aaru.CommonTypes.Enums
|
||||
public enum XmlMediaType : byte
|
||||
{
|
||||
/// <summary>Purely optical discs</summary>
|
||||
OpticalDisc = 0, /// <summary>Media that is physically block-based or abstracted like that</summary>
|
||||
BlockMedia = 1, /// <summary>Media that can be accessed by-byte or by-bit, like chips</summary>
|
||||
LinearMedia = 2, /// <summary>Media that can only store data when it is modulated to audio</summary>
|
||||
OpticalDisc = 0,
|
||||
/// <summary>Media that is physically block-based or abstracted like that</summary>
|
||||
BlockMedia = 1,
|
||||
/// <summary>Media that can be accessed by-byte or by-bit, like chips</summary>
|
||||
LinearMedia = 2,
|
||||
/// <summary>Media that can only store data when it is modulated to audio</summary>
|
||||
AudioMedia = 3
|
||||
}
|
||||
|
||||
@@ -180,9 +273,12 @@ namespace Aaru.CommonTypes.Enums
|
||||
public enum CdFlags : byte
|
||||
{
|
||||
/// <summary>Track is quadraphonic.</summary>
|
||||
FourChannel = 0x08, /// <summary>Track is non-audio (data).</summary>
|
||||
DataTrack = 0x04, /// <summary>Track is copy protected.</summary>
|
||||
CopyPermitted = 0x02, /// <summary>Track has pre-emphasis.</summary>
|
||||
FourChannel = 0x08,
|
||||
/// <summary>Track is non-audio (data).</summary>
|
||||
DataTrack = 0x04,
|
||||
/// <summary>Track is copy protected.</summary>
|
||||
CopyPermitted = 0x02,
|
||||
/// <summary>Track has pre-emphasis.</summary>
|
||||
PreEmphasis = 0x01
|
||||
}
|
||||
|
||||
@@ -191,12 +287,16 @@ namespace Aaru.CommonTypes.Enums
|
||||
public enum FloppySectorStatus : byte
|
||||
{
|
||||
/// <summary>Both address mark and data checksums are correct.</summary>
|
||||
Correct = 0x01, /// <summary>Data checksum is incorrect.</summary>
|
||||
DataError = 0x02, /// <summary>Addres mark checksum is incorrect.</summary>
|
||||
Correct = 0x01,
|
||||
/// <summary>Data checksum is incorrect.</summary>
|
||||
DataError = 0x02,
|
||||
/// <summary>Addres mark checksum is incorrect.</summary>
|
||||
AddressMarkError = 0x04,
|
||||
/// <summary>There is another sector in the same track/head with same sector id.</summary>
|
||||
Duplicated = 0x08, /// <summary>Sector data section is not magnetized.</summary>
|
||||
Demagnetized = 0x10, /// <summary>Sector data section has a physically visible hole.</summary>
|
||||
Duplicated = 0x08,
|
||||
/// <summary>Sector data section is not magnetized.</summary>
|
||||
Demagnetized = 0x10,
|
||||
/// <summary>Sector data section has a physically visible hole.</summary>
|
||||
Hole = 0x20,
|
||||
/// <summary>There is no address mark containing the requested sector id in the track/head.</summary>
|
||||
NotFound = 0x40
|
||||
@@ -205,11 +305,16 @@ namespace Aaru.CommonTypes.Enums
|
||||
public enum FloppyTypes : byte
|
||||
{
|
||||
/// <summary>8" floppy</summary>
|
||||
Floppy, /// <summary>5.25" floppy</summary>
|
||||
MiniFloppy, /// <summary>3.5" floppy</summary>
|
||||
MicroFloppy, /// <summary>3" floppy</summary>
|
||||
CompactFloppy, /// <summary>5.25" twiggy</summary>
|
||||
FileWare, /// <summary>2.5" quickdisk</summary>
|
||||
Floppy,
|
||||
/// <summary>5.25" floppy</summary>
|
||||
MiniFloppy,
|
||||
/// <summary>3.5" floppy</summary>
|
||||
MicroFloppy,
|
||||
/// <summary>3" floppy</summary>
|
||||
CompactFloppy,
|
||||
/// <summary>5.25" twiggy</summary>
|
||||
FileWare,
|
||||
/// <summary>2.5" quickdisk</summary>
|
||||
QuickDisk
|
||||
}
|
||||
|
||||
@@ -218,8 +323,10 @@ namespace Aaru.CommonTypes.Enums
|
||||
/// <summary>Standard coercitivity (about 300Oe as found in 8" and 5.25"-double-density disks).</summary>
|
||||
Standard,
|
||||
/// <summary>Double density coercitivity (about 600Oe as found in 5.25" HD and 3.5" DD disks).</summary>
|
||||
Double, /// <summary>High density coercitivity (about 700Oe as found in 3.5" HD disks).</summary>
|
||||
High, /// <summary>Extended density coercitivity (about 750Oe as found in 3.5" ED disks).</summary>
|
||||
Double,
|
||||
/// <summary>High density coercitivity (about 700Oe as found in 3.5" HD disks).</summary>
|
||||
High,
|
||||
/// <summary>Extended density coercitivity (about 750Oe as found in 3.5" ED disks).</summary>
|
||||
Extended
|
||||
}
|
||||
}
|
||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
||||
byte realEnd;
|
||||
|
||||
if(run)
|
||||
realEnd = (byte)(start + end - 1);
|
||||
realEnd = (byte)((start + end) - 1);
|
||||
else
|
||||
realEnd = end;
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
||||
int realEnd;
|
||||
|
||||
if(run)
|
||||
realEnd = start + end - 1;
|
||||
realEnd = (start + end) - 1;
|
||||
else
|
||||
realEnd = end;
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
||||
long realEnd;
|
||||
|
||||
if(run)
|
||||
realEnd = start + end - 1;
|
||||
realEnd = (start + end) - 1;
|
||||
else
|
||||
realEnd = end;
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
||||
sbyte realEnd;
|
||||
|
||||
if(run)
|
||||
realEnd = (sbyte)(start + end - 1);
|
||||
realEnd = (sbyte)((start + end) - 1);
|
||||
else
|
||||
realEnd = end;
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
||||
short realEnd;
|
||||
|
||||
if(run)
|
||||
realEnd = (short)(start + end - 1);
|
||||
realEnd = (short)((start + end) - 1);
|
||||
else
|
||||
realEnd = end;
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
||||
uint realEnd;
|
||||
|
||||
if(run)
|
||||
realEnd = start + end - 1;
|
||||
realEnd = (start + end) - 1;
|
||||
else
|
||||
realEnd = end;
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
||||
ulong realEnd;
|
||||
|
||||
if(run)
|
||||
realEnd = start + end - 1;
|
||||
realEnd = (start + end) - 1;
|
||||
else
|
||||
realEnd = end;
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
||||
ushort realEnd;
|
||||
|
||||
if(run)
|
||||
realEnd = (ushort)(start + end - 1);
|
||||
realEnd = (ushort)((start + end) - 1);
|
||||
else
|
||||
realEnd = end;
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Aaru.CommonTypes
|
||||
/// <summary>Fills the list of all known filters</summary>
|
||||
public FiltersList()
|
||||
{
|
||||
Assembly assembly = Assembly.Load("Aaru.Filters");
|
||||
var assembly = Assembly.Load("Aaru.Filters");
|
||||
Filters = new SortedDictionary<string, IFilter>();
|
||||
|
||||
foreach(Type type in assembly.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(IFilter))))
|
||||
|
||||
@@ -128,8 +128,8 @@ namespace Aaru.CommonTypes
|
||||
geometry.variableSectorsPerTrack select geom.type).
|
||||
FirstOrDefault();
|
||||
|
||||
public static(ushort cylinders, byte heads, ushort sectorsPerTrack, uint bytesPerSector, MediaEncoding encoding,
|
||||
bool variableSectorsPerTrack, MediaType type) GetGeometry(MediaType mediaType) =>
|
||||
public static (ushort cylinders, byte heads, ushort sectorsPerTrack, uint bytesPerSector, MediaEncoding encoding
|
||||
, bool variableSectorsPerTrack, MediaType type) GetGeometry(MediaType mediaType) =>
|
||||
(from geom in KnownGeometries where geom.type == mediaType select geom).FirstOrDefault();
|
||||
}
|
||||
}
|
||||
@@ -41,15 +41,18 @@ namespace Aaru.CommonTypes.Interfaces
|
||||
public enum ArchiveSupportedFeature : uint
|
||||
{
|
||||
/// <summary>The archive supports filenames for its entries. If this flag is not set, files can only be accessed by number.</summary>
|
||||
SupportsFilenames = 1 << 0, /// <summary>
|
||||
SupportsFilenames = 1 << 0,
|
||||
/// <summary>
|
||||
/// The archive supports compression. If this flag is not set, compressed and uncompressed lengths are always the
|
||||
/// same.
|
||||
/// </summary>
|
||||
SupportsCompression = 1 << 1, /// <summary>
|
||||
SupportsCompression = 1 << 1,
|
||||
/// <summary>
|
||||
/// The archive supports subdirectories. If this flag is not set, all filenames are guaranteed to not contain any
|
||||
/// "/" character.
|
||||
/// </summary>
|
||||
SupportsSubdirectories = 1 << 2, /// <summary>
|
||||
SupportsSubdirectories = 1 << 2,
|
||||
/// <summary>
|
||||
/// The archive supports explicit entries for directories (like Zip, for example). If this flag is not set,
|
||||
/// directories are implicit by the relative name of the files.
|
||||
/// </summary>
|
||||
|
||||
@@ -228,7 +228,7 @@ namespace Aaru.CommonTypes.Interop
|
||||
goto default;
|
||||
case PlatformID.Win32NT:
|
||||
// From Windows 8.1 the reported version is simply falsified...
|
||||
if(Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Major >= 2 ||
|
||||
if((Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Major >= 2) ||
|
||||
Environment.OSVersion.Version.Major > 6)
|
||||
return FileVersionInfo.
|
||||
GetVersionInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System),
|
||||
|
||||
@@ -42,41 +42,76 @@ namespace Aaru.CommonTypes.Interop
|
||||
public enum PlatformID
|
||||
{
|
||||
/// <summary>Win32s</summary>
|
||||
Win32S = 0, /// <summary>Win32 (Windows 9x)</summary>
|
||||
Win32Windows = 1, /// <summary>Windows NT</summary>
|
||||
Win32NT = 2, /// <summary>Windows Mobile</summary>
|
||||
WinCE = 3, /// <summary>UNIX (do not use, too generic)</summary>
|
||||
Unix = 4, /// <summary>Xbox 360</summary>
|
||||
Xbox = 5, /// <summary>OS X</summary>
|
||||
MacOSX = 6, /// <summary>iOS is not OS X</summary>
|
||||
iOS = 7, /// <summary>Linux</summary>
|
||||
Linux = 8, /// <summary>Sun Solaris</summary>
|
||||
Solaris = 9, /// <summary>NetBSD</summary>
|
||||
NetBSD = 10, /// <summary>OpenBSD</summary>
|
||||
OpenBSD = 11, /// <summary>FreeBSD</summary>
|
||||
FreeBSD = 12, /// <summary>DragonFly BSD</summary>
|
||||
DragonFly = 13, /// <summary>Nintendo Wii</summary>
|
||||
Wii = 14, /// <summary>Nintendo Wii U</summary>
|
||||
WiiU = 15, /// <summary>Sony PlayStation 3</summary>
|
||||
PlayStation3 = 16, /// <summary>Sony Playstation 4</summary>
|
||||
PlayStation4 = 17, /// <summary>Google Android</summary>
|
||||
Android = 18, /// <summary>Samsung Tizen</summary>
|
||||
Tizen = 19, /// <summary>Windows Phone</summary>
|
||||
WindowsPhone = 20, /// <summary>GNU/Hurd</summary>
|
||||
Hurd = 21, /// <summary>Haiku</summary>
|
||||
Haiku = 22, /// <summary>HP-UX</summary>
|
||||
HPUX = 23, /// <summary>AIX</summary>
|
||||
AIX = 24, /// <summary>OS/400</summary>
|
||||
OS400 = 25, /// <summary>IRIX</summary>
|
||||
IRIX = 26, /// <summary>Minix</summary>
|
||||
Minix = 27, /// <summary>NonStop</summary>
|
||||
NonStop = 28, /// <summary>QNX</summary>
|
||||
QNX = 29, /// <summary>SINIX</summary>
|
||||
SINIX = 30, /// <summary>Tru64 UNIX</summary>
|
||||
Tru64 = 31, /// <summary>Ultrix</summary>
|
||||
Ultrix = 32, /// <summary>SCO OpenServer / SCO UNIX</summary>
|
||||
OpenServer = 33, /// <summary>SCO UnixWare</summary>
|
||||
UnixWare = 34, /// <summary>IBM z/OS</summary>
|
||||
Win32S = 0,
|
||||
/// <summary>Win32 (Windows 9x)</summary>
|
||||
Win32Windows = 1,
|
||||
/// <summary>Windows NT</summary>
|
||||
Win32NT = 2,
|
||||
/// <summary>Windows Mobile</summary>
|
||||
WinCE = 3,
|
||||
/// <summary>UNIX (do not use, too generic)</summary>
|
||||
Unix = 4,
|
||||
/// <summary>Xbox 360</summary>
|
||||
Xbox = 5,
|
||||
/// <summary>OS X</summary>
|
||||
MacOSX = 6,
|
||||
/// <summary>iOS is not OS X</summary>
|
||||
iOS = 7,
|
||||
/// <summary>Linux</summary>
|
||||
Linux = 8,
|
||||
/// <summary>Sun Solaris</summary>
|
||||
Solaris = 9,
|
||||
/// <summary>NetBSD</summary>
|
||||
NetBSD = 10,
|
||||
/// <summary>OpenBSD</summary>
|
||||
OpenBSD = 11,
|
||||
/// <summary>FreeBSD</summary>
|
||||
FreeBSD = 12,
|
||||
/// <summary>DragonFly BSD</summary>
|
||||
DragonFly = 13,
|
||||
/// <summary>Nintendo Wii</summary>
|
||||
Wii = 14,
|
||||
/// <summary>Nintendo Wii U</summary>
|
||||
WiiU = 15,
|
||||
/// <summary>Sony PlayStation 3</summary>
|
||||
PlayStation3 = 16,
|
||||
/// <summary>Sony Playstation 4</summary>
|
||||
PlayStation4 = 17,
|
||||
/// <summary>Google Android</summary>
|
||||
Android = 18,
|
||||
/// <summary>Samsung Tizen</summary>
|
||||
Tizen = 19,
|
||||
/// <summary>Windows Phone</summary>
|
||||
WindowsPhone = 20,
|
||||
/// <summary>GNU/Hurd</summary>
|
||||
Hurd = 21,
|
||||
/// <summary>Haiku</summary>
|
||||
Haiku = 22,
|
||||
/// <summary>HP-UX</summary>
|
||||
HPUX = 23,
|
||||
/// <summary>AIX</summary>
|
||||
AIX = 24,
|
||||
/// <summary>OS/400</summary>
|
||||
OS400 = 25,
|
||||
/// <summary>IRIX</summary>
|
||||
IRIX = 26,
|
||||
/// <summary>Minix</summary>
|
||||
Minix = 27,
|
||||
/// <summary>NonStop</summary>
|
||||
NonStop = 28,
|
||||
/// <summary>QNX</summary>
|
||||
QNX = 29,
|
||||
/// <summary>SINIX</summary>
|
||||
SINIX = 30,
|
||||
/// <summary>Tru64 UNIX</summary>
|
||||
Tru64 = 31,
|
||||
/// <summary>Ultrix</summary>
|
||||
Ultrix = 32,
|
||||
/// <summary>SCO OpenServer / SCO UNIX</summary>
|
||||
OpenServer = 33,
|
||||
/// <summary>SCO UnixWare</summary>
|
||||
UnixWare = 34,
|
||||
/// <summary>IBM z/OS</summary>
|
||||
zOS = 35, Unknown = -1
|
||||
}
|
||||
}
|
||||
@@ -60,7 +60,7 @@ namespace Aaru.CommonTypes
|
||||
/// <summary>Information that does not find space in this struct</summary>
|
||||
public string Description;
|
||||
/// <summary>LBA of last partition sector</summary>
|
||||
public ulong End => Start + Length - 1;
|
||||
public ulong End => (Start + Length) - 1;
|
||||
/// <summary>Name of partition scheme that contains this partition</summary>
|
||||
public string Scheme;
|
||||
|
||||
|
||||
@@ -47,63 +47,106 @@ namespace Aaru.CommonTypes.Structs
|
||||
public enum FileAttributes : ulong
|
||||
{
|
||||
/// <summary>File has no attributes</summary>
|
||||
None = 0, /// <summary>File is an alias (Mac OS)</summary>
|
||||
Alias = 0x01, /// <summary>Indicates that the file can only be writable appended</summary>
|
||||
AppendOnly = 0x02, /// <summary>File is candidate for archival/backup</summary>
|
||||
Archive = 0x04, /// <summary>File is a block device</summary>
|
||||
BlockDevice = 0x08, /// <summary>File is stored on filesystem block units instead of device sectors</summary>
|
||||
BlockUnits = 0x10, /// <summary>Directory is a bundle or file contains a BNDL resource</summary>
|
||||
Bundle = 0x20, /// <summary>File is a char device</summary>
|
||||
CharDevice = 0x40, /// <summary>File is compressed</summary>
|
||||
Compressed = 0x80, /// <summary>File is compressed and should not be uncompressed on read</summary>
|
||||
CompressedRaw = 0x100, /// <summary>File has compression errors</summary>
|
||||
CompressionError = 0x200, /// <summary>Compressed file is dirty</summary>
|
||||
CompressionDirty = 0x400, /// <summary>File is a device</summary>
|
||||
Device = 0x800, /// <summary>File is a directory</summary>
|
||||
Directory = 0x1000, /// <summary>File is encrypted</summary>
|
||||
Encrypted = 0x2000, /// <summary>File is stored on disk using extents</summary>
|
||||
Extents = 0x4000, /// <summary>File is a FIFO</summary>
|
||||
FIFO = 0x8000, /// <summary>File is a normal file</summary>
|
||||
None = 0,
|
||||
/// <summary>File is an alias (Mac OS)</summary>
|
||||
Alias = 0x01,
|
||||
/// <summary>Indicates that the file can only be writable appended</summary>
|
||||
AppendOnly = 0x02,
|
||||
/// <summary>File is candidate for archival/backup</summary>
|
||||
Archive = 0x04,
|
||||
/// <summary>File is a block device</summary>
|
||||
BlockDevice = 0x08,
|
||||
/// <summary>File is stored on filesystem block units instead of device sectors</summary>
|
||||
BlockUnits = 0x10,
|
||||
/// <summary>Directory is a bundle or file contains a BNDL resource</summary>
|
||||
Bundle = 0x20,
|
||||
/// <summary>File is a char device</summary>
|
||||
CharDevice = 0x40,
|
||||
/// <summary>File is compressed</summary>
|
||||
Compressed = 0x80,
|
||||
/// <summary>File is compressed and should not be uncompressed on read</summary>
|
||||
CompressedRaw = 0x100,
|
||||
/// <summary>File has compression errors</summary>
|
||||
CompressionError = 0x200,
|
||||
/// <summary>Compressed file is dirty</summary>
|
||||
CompressionDirty = 0x400,
|
||||
/// <summary>File is a device</summary>
|
||||
Device = 0x800,
|
||||
/// <summary>File is a directory</summary>
|
||||
Directory = 0x1000,
|
||||
/// <summary>File is encrypted</summary>
|
||||
Encrypted = 0x2000,
|
||||
/// <summary>File is stored on disk using extents</summary>
|
||||
Extents = 0x4000,
|
||||
/// <summary>File is a FIFO</summary>
|
||||
FIFO = 0x8000,
|
||||
/// <summary>File is a normal file</summary>
|
||||
File = 0x10000,
|
||||
/// <summary>File is a Mac OS file containing desktop databases that has already been added to the desktop database</summary>
|
||||
HasBeenInited = 0x20000, /// <summary>File contains an icon resource / EA</summary>
|
||||
HasBeenInited = 0x20000,
|
||||
/// <summary>File contains an icon resource / EA</summary>
|
||||
HasCustomIcon = 0x40000,
|
||||
/// <summary>File is a Mac OS extension or control panel lacking INIT resources</summary>
|
||||
HasNoINITs = 0x80000, /// <summary>File is hidden/invisible</summary>
|
||||
Hidden = 0x100000, /// <summary>File cannot be written, deleted, modified or linked to</summary>
|
||||
Immutable = 0x200000, /// <summary>Directory is indexed using hashed trees</summary>
|
||||
IndexedDirectory = 0x400000, /// <summary>File contents are stored alongside its inode (or equivalent)</summary>
|
||||
Inline = 0x800000, /// <summary>File contains integrity checks</summary>
|
||||
IntegrityStream = 0x1000000, /// <summary>File is on desktop</summary>
|
||||
HasNoINITs = 0x80000,
|
||||
/// <summary>File is hidden/invisible</summary>
|
||||
Hidden = 0x100000,
|
||||
/// <summary>File cannot be written, deleted, modified or linked to</summary>
|
||||
Immutable = 0x200000,
|
||||
/// <summary>Directory is indexed using hashed trees</summary>
|
||||
IndexedDirectory = 0x400000,
|
||||
/// <summary>File contents are stored alongside its inode (or equivalent)</summary>
|
||||
Inline = 0x800000,
|
||||
/// <summary>File contains integrity checks</summary>
|
||||
IntegrityStream = 0x1000000,
|
||||
/// <summary>File is on desktop</summary>
|
||||
IsOnDesk = 0x2000000,
|
||||
/// <summary>File changes are written to filesystem journal before being written to file itself</summary>
|
||||
Journaled = 0x4000000, /// <summary>Access time will not be modified</summary>
|
||||
NoAccessTime = 0x8000000, /// <summary>File will not be subject to copy-on-write</summary>
|
||||
NoCopyOnWrite = 0x10000000, /// <summary>File will not be backed up</summary>
|
||||
NoDump = 0x20000000, /// <summary>File contents should not be scrubbed</summary>
|
||||
NoScrub = 0x40000000, /// <summary>File contents should not be indexed</summary>
|
||||
NotIndexed = 0x80000000, /// <summary>File is offline</summary>
|
||||
Offline = 0x100000000, /// <summary>File is password protected, but contents are not encrypted on disk</summary>
|
||||
Password = 0x200000000, /// <summary>File is read-only</summary>
|
||||
ReadOnly = 0x400000000, /// <summary>File is a reparse point</summary>
|
||||
Journaled = 0x4000000,
|
||||
/// <summary>Access time will not be modified</summary>
|
||||
NoAccessTime = 0x8000000,
|
||||
/// <summary>File will not be subject to copy-on-write</summary>
|
||||
NoCopyOnWrite = 0x10000000,
|
||||
/// <summary>File will not be backed up</summary>
|
||||
NoDump = 0x20000000,
|
||||
/// <summary>File contents should not be scrubbed</summary>
|
||||
NoScrub = 0x40000000,
|
||||
/// <summary>File contents should not be indexed</summary>
|
||||
NotIndexed = 0x80000000,
|
||||
/// <summary>File is offline</summary>
|
||||
Offline = 0x100000000,
|
||||
/// <summary>File is password protected, but contents are not encrypted on disk</summary>
|
||||
Password = 0x200000000,
|
||||
/// <summary>File is read-only</summary>
|
||||
ReadOnly = 0x400000000,
|
||||
/// <summary>File is a reparse point</summary>
|
||||
ReparsePoint = 0x800000000,
|
||||
/// <summary>When file is removed its content will be overwritten with zeroes</summary>
|
||||
Secured = 0x1000000000, /// <summary>File contents are sparse</summary>
|
||||
Sparse = 0x2000000000, /// <summary>File is a shadow (OS/2)</summary>
|
||||
Shadow = 0x4000000000, /// <summary>File is shared</summary>
|
||||
Shared = 0x8000000000, /// <summary>File is a stationery</summary>
|
||||
Stationery = 0x10000000000, /// <summary>File is a symbolic link</summary>
|
||||
Symlink = 0x20000000000, /// <summary>File writes are synchronously written to disk</summary>
|
||||
Sync = 0x40000000000, /// <summary>File belongs to the operating system</summary>
|
||||
Secured = 0x1000000000,
|
||||
/// <summary>File contents are sparse</summary>
|
||||
Sparse = 0x2000000000,
|
||||
/// <summary>File is a shadow (OS/2)</summary>
|
||||
Shadow = 0x4000000000,
|
||||
/// <summary>File is shared</summary>
|
||||
Shared = 0x8000000000,
|
||||
/// <summary>File is a stationery</summary>
|
||||
Stationery = 0x10000000000,
|
||||
/// <summary>File is a symbolic link</summary>
|
||||
Symlink = 0x20000000000,
|
||||
/// <summary>File writes are synchronously written to disk</summary>
|
||||
Sync = 0x40000000000,
|
||||
/// <summary>File belongs to the operating system</summary>
|
||||
System = 0x80000000000,
|
||||
/// <summary>If file end is a partial block its content will be merged with other files</summary>
|
||||
TailMerged = 0x100000000000, /// <summary>File is temporary</summary>
|
||||
TailMerged = 0x100000000000,
|
||||
/// <summary>File is temporary</summary>
|
||||
Temporary = 0x200000000000,
|
||||
/// <summary>Subdirectories inside of this directory are not related and should be allocated elsewhere</summary>
|
||||
TopDirectory = 0x400000000000,
|
||||
/// <summary>If file is deleted, contents should be stored, for a possible future undeletion</summary>
|
||||
Undeletable = 0x800000000000, /// <summary>File is a pipe</summary>
|
||||
Pipe = 0x1000000000000, /// <summary>File is a socket</summary>
|
||||
Undeletable = 0x800000000000,
|
||||
/// <summary>File is a pipe</summary>
|
||||
Pipe = 0x1000000000000,
|
||||
/// <summary>File is a socket</summary>
|
||||
Socket = 0x2000000000000
|
||||
}
|
||||
|
||||
@@ -223,36 +266,66 @@ namespace Aaru.CommonTypes.Structs
|
||||
public enum Errno
|
||||
{
|
||||
/// <summary>No error happened</summary>
|
||||
NoError = 0, /// <summary>Access denied</summary>
|
||||
AccessDenied = -13, /// <summary>Busy, cannot complete</summary>
|
||||
Busy = -16, /// <summary>File is too large</summary>
|
||||
FileTooLarge = -27, /// <summary>Invalid argument</summary>
|
||||
InvalidArgument = -22, /// <summary>I/O error</summary>
|
||||
InOutError = -5, /// <summary>Is a directory (e.g.: trying to Read() a dir)</summary>
|
||||
IsDirectory = -21, /// <summary>Name is too long</summary>
|
||||
NameTooLong = -36, /// <summary>There is no data available</summary>
|
||||
NoData = 61, /// <summary>There is no such attribute</summary>
|
||||
NoSuchExtendedAttribute = NoData, /// <summary>No such device</summary>
|
||||
NoSuchDevice = -19, /// <summary>No such file or directory</summary>
|
||||
NoSuchFile = -2, /// <summary>Is not a directory (e.g.: trying to ReadDir() a file)</summary>
|
||||
NotDirectory = -20, /// <summary>Not implemented</summary>
|
||||
NotImplemented = -38, /// <summary>Not supported</summary>
|
||||
NotSupported = -252, /// <summary>Link is severed</summary>
|
||||
SeveredLink = -67, /// <summary>Access denied</summary>
|
||||
EACCES = AccessDenied, /// <summary>Busy, cannot complete</summary>
|
||||
EBUSY = Busy, /// <summary>File is too large</summary>
|
||||
EFBIG = FileTooLarge, /// <summary>Invalid argument</summary>
|
||||
EINVAL = InvalidArgument, /// <summary>I/O error</summary>
|
||||
EIO = InOutError, /// <summary>Is a directory (e.g.: trying to Read() a dir)</summary>
|
||||
EISDIR = IsDirectory, /// <summary>Name is too long</summary>
|
||||
ENAMETOOLONG = NameTooLong, /// <summary>There is no such attribute</summary>
|
||||
ENOATTR = NoSuchExtendedAttribute, /// <summary>There is no data available</summary>
|
||||
ENODATA = NoData, /// <summary>No such device</summary>
|
||||
ENODEV = NoSuchDevice, /// <summary>No such file or directory</summary>
|
||||
ENOENT = NoSuchFile, /// <summary>Link is severed</summary>
|
||||
ENOLINK = SeveredLink, /// <summary>Not implemented</summary>
|
||||
ENOSYS = NotImplemented, /// <summary>Is not a directory (e.g.: trying to ReadDir() a file)</summary>
|
||||
ENOTDIR = NotDirectory, /// <summary>Not supported</summary>
|
||||
NoError = 0,
|
||||
/// <summary>Access denied</summary>
|
||||
AccessDenied = -13,
|
||||
/// <summary>Busy, cannot complete</summary>
|
||||
Busy = -16,
|
||||
/// <summary>File is too large</summary>
|
||||
FileTooLarge = -27,
|
||||
/// <summary>Invalid argument</summary>
|
||||
InvalidArgument = -22,
|
||||
/// <summary>I/O error</summary>
|
||||
InOutError = -5,
|
||||
/// <summary>Is a directory (e.g.: trying to Read() a dir)</summary>
|
||||
IsDirectory = -21,
|
||||
/// <summary>Name is too long</summary>
|
||||
NameTooLong = -36,
|
||||
/// <summary>There is no data available</summary>
|
||||
NoData = 61,
|
||||
/// <summary>There is no such attribute</summary>
|
||||
NoSuchExtendedAttribute = NoData,
|
||||
/// <summary>No such device</summary>
|
||||
NoSuchDevice = -19,
|
||||
/// <summary>No such file or directory</summary>
|
||||
NoSuchFile = -2,
|
||||
/// <summary>Is not a directory (e.g.: trying to ReadDir() a file)</summary>
|
||||
NotDirectory = -20,
|
||||
/// <summary>Not implemented</summary>
|
||||
NotImplemented = -38,
|
||||
/// <summary>Not supported</summary>
|
||||
NotSupported = -252,
|
||||
/// <summary>Link is severed</summary>
|
||||
SeveredLink = -67,
|
||||
/// <summary>Access denied</summary>
|
||||
EACCES = AccessDenied,
|
||||
/// <summary>Busy, cannot complete</summary>
|
||||
EBUSY = Busy,
|
||||
/// <summary>File is too large</summary>
|
||||
EFBIG = FileTooLarge,
|
||||
/// <summary>Invalid argument</summary>
|
||||
EINVAL = InvalidArgument,
|
||||
/// <summary>I/O error</summary>
|
||||
EIO = InOutError,
|
||||
/// <summary>Is a directory (e.g.: trying to Read() a dir)</summary>
|
||||
EISDIR = IsDirectory,
|
||||
/// <summary>Name is too long</summary>
|
||||
ENAMETOOLONG = NameTooLong,
|
||||
/// <summary>There is no such attribute</summary>
|
||||
ENOATTR = NoSuchExtendedAttribute,
|
||||
/// <summary>There is no data available</summary>
|
||||
ENODATA = NoData,
|
||||
/// <summary>No such device</summary>
|
||||
ENODEV = NoSuchDevice,
|
||||
/// <summary>No such file or directory</summary>
|
||||
ENOENT = NoSuchFile,
|
||||
/// <summary>Link is severed</summary>
|
||||
ENOLINK = SeveredLink,
|
||||
/// <summary>Not implemented</summary>
|
||||
ENOSYS = NotImplemented,
|
||||
/// <summary>Is not a directory (e.g.: trying to ReadDir() a file)</summary>
|
||||
ENOTDIR = NotDirectory,
|
||||
/// <summary>Not supported</summary>
|
||||
ENOTSUP = NotSupported
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user