using System; using System.Collections.Generic; using System.Text; namespace UniversalEditor.Compression.Common { public class Match { private int len; private int pos; private MatchState state; private byte symbol; internal int Length { get { return this.len; } set { this.len = value; } } internal int Position { get { return this.pos; } set { this.pos = value; } } internal MatchState State { get { return this.state; } set { this.state = value; } } internal byte Symbol { get { return this.symbol; } set { this.symbol = value; } } } public enum MatchState { HasMatch = 2, HasSymbol = 1, HasSymbolAndMatch = 3 } }