Exemplo n.º 1
0
        public static FoxHash ReadFoxHash(Stream input)
        {
            FoxHash foxHash = new FoxHash();

            foxHash.Read(input);
            return(foxHash);
        }
Exemplo n.º 2
0
        private void Read(Stream input)
        {
            BinaryReader reader = new BinaryReader(input, Encoding.Default, true);

            Hash = FoxHash.ReadFoxHash(input);

            if (Hash.HashValue == 0)
            {
                return;
            }
            int stringLength = reader.ReadInt32();

            Literal = reader.ReadString(stringLength);
        }
Exemplo n.º 3
0
 public FoxStringLookupLiteral(string literal, FoxHash hash)
     : base(literal, hash)
 {
 }
Exemplo n.º 4
0
 protected bool Equals(FoxHash other)
 {
     return(HashValue == other.HashValue);
 }
Exemplo n.º 5
0
 public FoxStringLiteralBase(string literal, FoxHash hash)
 {
     Literal = literal;
     Hash = hash;
 }
 public FoxStringLiteralBase(string literal, FoxHash hash)
 {
     Literal = literal;
     Hash    = hash;
 }
Exemplo n.º 7
0
 public FoxStringLookupLiteral(string literal, FoxHash hash) : base(literal, hash)
 {
 }
Exemplo n.º 8
0
 private void Read(Stream input)
 {
     Hash = FoxHash.ReadFoxHash(input);
 }
Exemplo n.º 9
0
 public static FoxHash ReadFoxHash(Stream input)
 {
     FoxHash foxHash = new FoxHash();
     foxHash.Read(input);
     return foxHash;
 }
Exemplo n.º 10
0
 protected bool Equals(FoxHash other)
 {
     return HashValue == other.HashValue;
 }