Beispiel #1
0
        public static FoxHash ReadFoxHash(Stream input)
        {
            FoxHash foxHash = new FoxHash();

            foxHash.Read(input);
            return(foxHash);
        }
        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);
        }
 public FoxStringLookupLiteral(string literal, FoxHash hash)
     : base(literal, hash)
 {
 }
Beispiel #4
0
 protected bool Equals(FoxHash other)
 {
     return(HashValue == other.HashValue);
 }
 public FoxStringLiteralBase(string literal, FoxHash hash)
 {
     Literal = literal;
     Hash = hash;
 }
 public FoxStringLiteralBase(string literal, FoxHash hash)
 {
     Literal = literal;
     Hash    = hash;
 }
 public FoxStringLookupLiteral(string literal, FoxHash hash) : base(literal, hash)
 {
 }
Beispiel #8
0
 private void Read(Stream input)
 {
     Hash = FoxHash.ReadFoxHash(input);
 }
Beispiel #9
0
 public static FoxHash ReadFoxHash(Stream input)
 {
     FoxHash foxHash = new FoxHash();
     foxHash.Read(input);
     return foxHash;
 }
Beispiel #10
0
 protected bool Equals(FoxHash other)
 {
     return HashValue == other.HashValue;
 }