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:
@@ -36,6 +36,7 @@ namespace Aaru.DiscImages
|
||||
{
|
||||
// "TD" as little endian uint.
|
||||
const ushort TD_MAGIC = 0x4454;
|
||||
|
||||
// "td" as little endian uint. Means whole file is compressed (aka Advanced Compression)
|
||||
const ushort TD_ADV_COMP_MAGIC = 0x6474;
|
||||
|
||||
@@ -57,6 +58,7 @@ namespace Aaru.DiscImages
|
||||
const byte STEPPING_SINGLE = 0x00;
|
||||
const byte STEPPING_DOUBLE = 0x01;
|
||||
const byte STEPPING_EVEN_ONLY = 0x02;
|
||||
|
||||
// If this bit is set, there is a comment block
|
||||
const byte COMMENT_BLOCK_PRESENT = 0x80;
|
||||
|
||||
@@ -75,22 +77,29 @@ namespace Aaru.DiscImages
|
||||
// Flags
|
||||
// Address mark repeats inside same track
|
||||
const byte FLAGS_SECTOR_DUPLICATE = 0x01;
|
||||
|
||||
// Sector gave CRC error on reading
|
||||
const byte FLAGS_SECTOR_CRC_ERROR = 0x02;
|
||||
|
||||
// Address mark indicates deleted sector
|
||||
const byte FLAGS_SECTOR_DELETED = 0x04;
|
||||
|
||||
// Sector skipped as FAT said it's unused
|
||||
const byte FLAGS_SECTOR_SKIPPED = 0x10;
|
||||
|
||||
// There was an address mark, but no data following
|
||||
const byte FLAGS_SECTOR_DATALESS = 0x20;
|
||||
|
||||
// There was data without address mark
|
||||
const byte FLAGS_SECTOR_NO_ID = 0x40;
|
||||
|
||||
// Data block encodings
|
||||
// Data is copied as is
|
||||
const byte DATA_BLOCK_COPY = 0x00;
|
||||
|
||||
// Data is encoded as a pair of len.value uint16s
|
||||
const byte DATA_BLOCK_PATTERN = 0x01;
|
||||
|
||||
// Data is encoded as RLE
|
||||
const byte DATA_BLOCK_RLE = 0x02;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user