Files
Aaru/Aaru.Images/CopyTape/CopyTape.cs

37 lines
1.1 KiB
C#
Raw Normal View History

2022-03-07 07:36:44 +00:00
namespace Aaru.DiscImages;
2019-05-06 18:37:29 +01:00
using System.Collections.Generic;
2019-05-06 20:21:57 +01:00
using System.IO;
2020-02-27 00:33:26 +00:00
using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Interfaces;
using Aaru.CommonTypes.Structs;
2019-05-06 18:37:29 +01:00
2022-03-06 13:29:38 +00:00
/// <inheritdoc />
/// <summary>Implements reading and writing copytape tape images</summary>
public sealed partial class CopyTape : IWritableTapeImage
2019-05-06 18:37:29 +01:00
{
2022-03-06 13:29:38 +00:00
long[] _blockPositionCache;
ImageInfo _imageInfo;
Stream _imageStream;
2019-05-06 20:21:57 +01:00
2022-03-06 13:29:38 +00:00
public CopyTape() => _imageInfo = new ImageInfo
{
ReadableSectorTags = new List<SectorTagType>(),
ReadableMediaTags = new List<MediaTagType>(),
HasPartitions = true,
HasSessions = true,
Version = null,
ApplicationVersion = null,
MediaTitle = null,
Creator = null,
MediaManufacturer = null,
MediaModel = null,
MediaPartNumber = null,
MediaSequence = 0,
LastMediaSequence = 0,
DriveManufacturer = null,
DriveModel = null,
DriveSerialNumber = null,
DriveFirmwareRevision = null
};
2019-05-06 18:37:29 +01:00
}