using SabreTools.Numerics;
namespace SabreTools.Data.Models.STFS
{
///
/// STFS Hash Table Entry in a Hash Block's Hash Table
///
///
public class HashTableEntry
{
///
/// SHA-1 hash of the block
///
public byte[] Hash { get; set; } = new byte[20];
///
/// Status of the block
/// 0x00 = Unused block
/// 0x40 = Free block (previously used, now freed)
/// 0x80 = Used block
/// 0xC0 = Newly allocated block
///
public byte Status { get; set; }
///
/// Block number corresponding to the hash
/// FFFFFF = Block 1 (starting 0xB000)
///
/// Big-endian, 3-byte uint24
public UInt24 BlockNumber { get; set; } = new();
}
}