[STFS] Add skeleton.

This commit is contained in:
2025-09-02 14:14:55 +01:00
parent a61f4c961e
commit 6109399a48
2 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using System;
using Aaru.CommonTypes.Interfaces;
namespace Aaru.Archives;
public sealed partial class Stfs : IArchive
{
#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; }
/// <inheritdoc />
public ArchiveSupportedFeature ArchiveFeatures => ArchiveSupportedFeature.HasEntryTimestamp |
ArchiveSupportedFeature.SupportsFilenames;
/// <inheritdoc />
public int NumberOfEntries { get; }
#endregion
}

View File

@@ -0,0 +1,64 @@
using System;
using System.Collections.Generic;
using System.Text;
using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Interfaces;
using Aaru.CommonTypes.Structs;
using FileAttributes = System.IO.FileAttributes;
namespace Aaru.Archives;
public sealed partial class Stfs
{
#region IArchive Members
/// <inheritdoc />
public bool Identify(IFilter filter) => throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber Open(IFilter filter, Encoding encoding) => throw new NotImplementedException();
/// <inheritdoc />
public void Close()
{
throw new NotImplementedException();
}
/// <inheritdoc />
public ErrorNumber GetFilename(int entryNumber, out string fileName) => throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber GetEntryNumber(string fileName, bool caseInsensitiveMatch, out int entryNumber) =>
throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber GetCompressedSize(int entryNumber, out long length) => throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber GetUncompressedSize(int entryNumber, out long length) => throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber GetAttributes(int entryNumber, out FileAttributes attributes) =>
throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber ListXAttr(int entryNumber, out List<string> xattrs) => throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber GetXattr(int entryNumber, string xattr, ref byte[] buffer) =>
throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber Stat(int entryNumber, out FileEntryInfo stat) => throw new NotImplementedException();
/// <inheritdoc />
public ErrorNumber GetEntry(int entryNumber, out IFilter filter) => throw new NotImplementedException();
/// <inheritdoc />
public void GetInformation(IFilter filter, Encoding encoding, out string information)
{
throw new NotImplementedException();
}
#endregion
}