2019-05-06 20:21:57 +01:00
|
|
|
using System.IO;
|
2020-02-27 00:33:26 +00:00
|
|
|
using Aaru.CommonTypes.Interfaces;
|
|
|
|
|
using Aaru.CommonTypes.Structs;
|
2019-05-06 18:37:29 +01:00
|
|
|
|
2023-10-06 01:16:28 +01:00
|
|
|
namespace Aaru.Images;
|
2022-11-15 15:58:43 +00: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
|
|
|
|
|
{
|
2025-11-24 03:08:01 +00:00
|
|
|
ReadableSectorTags = [],
|
|
|
|
|
ReadableMediaTags = [],
|
2022-03-06 13:29:38 +00:00
|
|
|
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
|
|
|
}
|