예제 #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;
 }
 public FoxStringLiteralBase(string literal, FoxHash hash)
 {
     Literal = literal;
     Hash    = hash;
 }
예제 #7
0
 public FoxStringLookupLiteral(string literal, FoxHash hash) : base(literal, hash)
 {
 }
예제 #8
0
 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;
 }