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
|
|
|
|
2020-07-20 15:43:52 +01:00
|
|
|
namespace Aaru.DiscImages
|
2019-05-06 18:37:29 +01:00
|
|
|
{
|
2021-08-17 13:56:05 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Implements reading and writing copytape tape images
|
|
|
|
|
/// </summary>
|
2020-07-22 13:20:25 +01:00
|
|
|
public sealed partial class CopyTape : IWritableTapeImage
|
2019-05-06 18:37:29 +01:00
|
|
|
{
|
2020-07-20 21:11:32 +01:00
|
|
|
long[] _blockPositionCache;
|
|
|
|
|
ImageInfo _imageInfo;
|
|
|
|
|
Stream _imageStream;
|
2019-05-06 20:21:57 +01:00
|
|
|
|
2020-07-20 21:11:32 +01:00
|
|
|
public CopyTape() => _imageInfo = new ImageInfo
|
2019-05-06 18:37:29 +01:00
|
|
|
{
|
2020-07-20 04:34:16 +01:00
|
|
|
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
|
2020-02-29 18:03:35 +00:00
|
|
|
};
|
2019-05-06 18:37:29 +01:00
|
|
|
}
|
|
|
|
|
}
|