using System.IO;
namespace BinaryObjectScanner.Models.Compression.LZ
{
public sealed class State
{
///
/// Internal backing stream
///
public Stream Source { get; set; }
///
/// The last char of the filename for replacement
///
public char LastChar { get; set; }
///
/// Decompressed length of the file
///
public uint RealLength { get; set; }
///
/// Position the decompressor currently is
///
public uint RealCurrent { get; set; }
///
/// Position the user wants to read from
///
public uint RealWanted { get; set; }
///
/// The rotating LZ table
///
public byte[] Table { get; set; }
///
/// CURrent TABle ENTry
///
public uint CurrentTableEntry { get; set; }
///
/// Length and position of current string
///
public byte StringLength { get; set; }
///
/// From stringtable
///
public uint StringPosition { get; set; }
///
/// Bitmask within blocks
///
public ushort ByteType { get; set; }
///
/// GETLEN bytes
///
public byte[] Window { get; set; }
///
/// Current read
///
public uint WindowCurrent { get; set; }
///
/// Length last got
///
public uint WindowLength { get; set; }
}
}