2025-09-01 06:04:12 +01:00
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
2025-09-01 03:52:46 +01:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
namespace Aaru.Archives;
|
|
|
|
|
|
2025-09-01 03:55:48 +01:00
|
|
|
public sealed partial class Arc
|
2025-09-01 03:52:46 +01:00
|
|
|
{
|
2025-09-01 06:04:12 +01:00
|
|
|
#region Nested type: Entry
|
|
|
|
|
|
|
|
|
|
struct Entry
|
|
|
|
|
{
|
|
|
|
|
public Method Method;
|
|
|
|
|
public string Filename;
|
|
|
|
|
public int Compressed;
|
|
|
|
|
public int Uncompressed;
|
|
|
|
|
public DateTime LastWriteTime;
|
|
|
|
|
public long DataOffset;
|
|
|
|
|
public string Comment;
|
|
|
|
|
public FileAttributes Attributes;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2025-09-01 03:52:46 +01:00
|
|
|
#region Nested type: Header
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
|
|
|
|
|
readonly struct Header
|
|
|
|
|
{
|
2025-09-01 06:04:12 +01:00
|
|
|
public readonly byte marker;
|
|
|
|
|
public readonly Method method;
|
2025-09-01 03:52:46 +01:00
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = FNLEN)]
|
|
|
|
|
public readonly byte[] filename;
|
|
|
|
|
public readonly int compressed;
|
|
|
|
|
public readonly ushort date;
|
|
|
|
|
public readonly ushort time;
|
|
|
|
|
public readonly ushort crc;
|
|
|
|
|
public readonly int uncompressed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|