Files
Aaru/Aaru.Archives/Stfs/Stfs.cs

34 lines
1.1 KiB
C#
Raw Normal View History

2025-09-02 14:14:55 +01:00
using System;
2025-09-03 02:40:16 +01:00
using System.IO;
2025-09-02 14:14:55 +01:00
using Aaru.CommonTypes.Interfaces;
namespace Aaru.Archives;
public sealed partial class Stfs : IArchive
{
2025-09-03 14:52:40 +01:00
byte _blockSeparation;
2025-09-03 02:40:16 +01:00
FileEntry[] _entries;
2025-09-03 14:52:40 +01:00
int _headerSize;
bool _isConsole;
2025-09-03 02:40:16 +01:00
Stream _stream;
2025-09-02 14:14:55 +01:00
#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 />
2025-09-03 02:40:16 +01:00
public bool Opened { get; private set; }
2025-09-02 14:14:55 +01:00
/// <inheritdoc />
2025-09-03 02:40:16 +01:00
public ArchiveSupportedFeature ArchiveFeatures => ArchiveSupportedFeature.HasEntryTimestamp |
ArchiveSupportedFeature.SupportsFilenames |
ArchiveSupportedFeature.HasExplicitDirectories |
ArchiveSupportedFeature.SupportsSubdirectories;
2025-09-02 14:14:55 +01:00
/// <inheritdoc />
2025-09-03 02:40:16 +01:00
public int NumberOfEntries => Opened ? _entries.Length : -1;
2025-09-02 14:14:55 +01:00
#endregion
}