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) { }
protected bool Equals(FoxHash other) { return(HashValue == other.HashValue); }
public FoxStringLiteralBase(string literal, FoxHash hash) { Literal = literal; Hash = hash; }
private void Read(Stream input) { Hash = FoxHash.ReadFoxHash(input); }
public static FoxHash ReadFoxHash(Stream input) { FoxHash foxHash = new FoxHash(); foxHash.Read(input); return foxHash; }
protected bool Equals(FoxHash other) { return HashValue == other.HashValue; }