mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using System;
|
|
using System.IO;
|
|
using Aaru.CommonTypes.Interfaces;
|
|
|
|
namespace Aaru.Archives;
|
|
|
|
public sealed partial class Stfs : IArchive
|
|
{
|
|
byte _blockSeparation;
|
|
FileEntry[] _entries;
|
|
int _headerSize;
|
|
bool _isConsole;
|
|
Stream _stream;
|
|
|
|
#region IArchive Members
|
|
|
|
/// <inheritdoc />
|
|
public string Name => "Secure Transacted File System (STFS)";
|
|
/// <inheritdoc />
|
|
public Guid Id => new("6DDA6F47-B1B1-407E-892C-7DF0F46741A9");
|
|
/// <inheritdoc />
|
|
public string Author => Authors.NataliaPortillo;
|
|
/// <inheritdoc />
|
|
public bool Opened { get; private set; }
|
|
/// <inheritdoc />
|
|
public ArchiveSupportedFeature ArchiveFeatures => ArchiveSupportedFeature.HasEntryTimestamp |
|
|
ArchiveSupportedFeature.SupportsFilenames |
|
|
ArchiveSupportedFeature.HasExplicitDirectories |
|
|
ArchiveSupportedFeature.SupportsSubdirectories;
|
|
/// <inheritdoc />
|
|
public int NumberOfEntries => Opened ? _entries.Length : -1;
|
|
|
|
#endregion
|
|
} |