Add support in dicformat for skipping storing CD prefixes and suffixes that are correct.

This commit is contained in:
2018-07-31 23:27:08 +01:00
parent daab885f2a
commit 9aab686e93
9 changed files with 833 additions and 118 deletions

View File

@@ -136,10 +136,14 @@ namespace DiscImageChef.DiscImages
bool rewinded;
/// <summary>Cache for data that prefixes the user data on a sector (e.g. sync).</summary>
byte[] sectorPrefix;
uint[] sectorPrefixDdt;
MemoryStream sectorPrefixMs;
/// <summary>Cache for data that goes side by side with user data (e.g. CompactDisc subchannel).</summary>
byte[] sectorSubchannel;
/// <summary>Cache for data that suffixes the user data on a sector (e.g. edc, ecc).</summary>
byte[] sectorSuffix;
uint[] sectorSuffixDdt;
MemoryStream sectorSuffixMs;
Sha1Context sha1Provider;
Sha256Context sha256Provider;
/// <summary>Shift for calculating number of sectors in a block.</summary>