Exemple #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)
 {
 }
Exemple #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)
 {
 }
Exemple #8
0
 private void Read(Stream input)
 {
     Hash = FoxHash.ReadFoxHash(input);
 }
Exemple #9
0
 public static FoxHash ReadFoxHash(Stream input)
 {
     FoxHash foxHash = new FoxHash();
     foxHash.Read(input);
     return foxHash;
 }
Exemple #10
0
 protected bool Equals(FoxHash other)
 {
     return HashValue == other.HashValue;
 }