Fantasy
搜索结果

    显示/隐藏目录

    HashCodeHelper 类

    HashCode算法帮助类

    继承
    object
    HashCodeHelper
    继承成员
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.Helper
    程序集: Fantasy.Net.dll
    语法
    public static class HashCodeHelper

    方法

    | 编辑本文 查看源代码

    ComputeHash64(string)

    使用MurmurHash3算法生成一个long的值

    声明
    public static long ComputeHash64(string str)
    参数
    类型 名称 描述
    string str
    返回
    类型 描述
    long
    | 编辑本文 查看源代码

    ComputeSha256HashAsInt(string)

    根据字符串计算一个Hash值

    声明
    public static int ComputeSha256HashAsInt(string rawData)
    参数
    类型 名称 描述
    string rawData
    返回
    类型 描述
    int
    | 编辑本文 查看源代码

    GetBKDRHashCode(string)

    使用bkdr算法生成一个long的值

    声明
    public static long GetBKDRHashCode(string str)
    参数
    类型 名称 描述
    string str
    返回
    类型 描述
    long
    | 编辑本文 查看源代码

    MurmurHash3(string)

    使用MurmurHash3算法生成一个uint的值

    声明
    public static uint MurmurHash3(string str)
    参数
    类型 名称 描述
    string str
    返回
    类型 描述
    uint
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX