コード例 #1
0
        public static FoxHash ReadFoxHash(Stream input)
        {
            FoxHash foxHash = new FoxHash();

            foxHash.Read(input);
            return(foxHash);
        }
コード例 #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);
        }
コード例 #3
0
 public FoxStringLookupLiteral(string literal, FoxHash hash)
     : base(literal, hash)
 {
 }
コード例 #4
0
 protected bool Equals(FoxHash other)
 {
     return(HashValue == other.HashValue);
 }
コード例 #5
0
 public FoxStringLiteralBase(string literal, FoxHash hash)
 {
     Literal = literal;
     Hash = hash;
 }
コード例 #6
0
 public FoxStringLiteralBase(string literal, FoxHash hash)
 {
     Literal = literal;
     Hash    = hash;
 }
コード例 #7
0
 public FoxStringLookupLiteral(string literal, FoxHash hash) : base(literal, hash)
 {
 }
コード例 #8
0
ファイル: FoxStringLiteral.cs プロジェクト: whaison/FoxTool
 private void Read(Stream input)
 {
     Hash = FoxHash.ReadFoxHash(input);
 }
コード例 #9
0
ファイル: FoxHash.cs プロジェクト: kkkkyue/FoxTool
 public static FoxHash ReadFoxHash(Stream input)
 {
     FoxHash foxHash = new FoxHash();
     foxHash.Read(input);
     return foxHash;
 }
コード例 #10
0
ファイル: FoxHash.cs プロジェクト: kkkkyue/FoxTool
 protected bool Equals(FoxHash other)
 {
     return HashValue == other.HashValue;
 }