示例#1
0
文件: Hasher.cs 项目: Luch00/LxAniDB
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder(130);

            Bindings.rhash_print(sb, ptr, 0, 0);
            return(sb.ToString());
        }
示例#2
0
文件: Hasher.cs 项目: Luch00/LxAniDB
        public string ToRaw(HashType type)
        {
            if ((hash_ids & (uint)type) == 0)
            {
                throw new ArgumentException("This hasher does not support hash type " + type, "type");
            }
            StringBuilder sb = new StringBuilder(130);

            Bindings.rhash_print(sb, ptr, (uint)type, RAW);
            return(sb.ToString());
        }
示例#3
0
文件: Hasher.cs 项目: n0ix/SFDL.RHash
        public string ToRaw(HashType type)
        {
            if ((hash_ids & (uint)type) == 0)
            {
                throw new ArgumentException("This hasher has not computed message digest for id: " + type, "type");
            }
            StringBuilder sb = new StringBuilder(130);

            Bindings.rhash_print(sb, ptr, (uint)type, RAW);
            return(sb.ToString());
        }