[Aaru.Images] Reformat and cleanup.

This commit is contained in:
2023-10-03 23:34:59 +01:00
parent 6ffde343ce
commit 2cfad87955
432 changed files with 12011 additions and 8261 deletions

View File

@@ -49,9 +49,11 @@ public sealed partial class CopyTape
ulong _lastWrittenBlock;
Dictionary<ulong, ulong> _writtenBlockPositions;
#region IWritableTapeImage Members
/// <inheritdoc />
public bool Create(string path, MediaType mediaType, Dictionary<string, string> options, ulong sectors,
uint sectorSize)
uint sectorSize)
{
if(!SupportedMediaTypes.Contains(mediaType))
{
@@ -126,7 +128,7 @@ public sealed partial class CopyTape
_writtenBlockPositions[sectorAddress] = (ulong)_dataStream.Position;
_dataStream.Write(header, 0, header.Length);
_dataStream.Write(data, 0, data.Length);
_dataStream.Write(data, 0, data.Length);
_dataStream.WriteByte(0x0A);
if(sectorAddress > _lastWrittenBlock)
@@ -256,4 +258,6 @@ public sealed partial class CopyTape
return true;
}
#endregion
}