TriLib
Search Results for

    Show / Hide Table of Contents

    Class HashUtils

    Represents a series of Hash generation utility methods.

    Inheritance
    object
    HashUtils
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: TriLibCore.Utils
    Assembly: TriLibCore.dll
    Syntax
    public static class HashUtils

    Methods

    GetHash(IList<byte>, int)

    Calculates a Long Hash using the given Byte Array.

    Declaration
    public static long GetHash(IList<byte> bytes, int count)
    Parameters
    Type Name Description
    IList<byte> bytes

    The Byte Array used to calculate the Hash.

    int count

    The Byte Array count.

    Returns
    Type Description
    long

    The calculated Hash.

    GetHash(IList<char>, int)

    Calculates a Long Hash using the given Char Array.

    Declaration
    public static long GetHash(IList<char> chars, int count)
    Parameters
    Type Name Description
    IList<char> chars

    The Char Array used to calculate the Hash.

    int count

    The Char Array count.

    Returns
    Type Description
    long

    The calculated Hash.

    GetHash(long, int)

    Calculates a Long Hash from the given Value, using the given Hash as basis.

    Declaration
    public static long GetHash(long hash, int value)
    Parameters
    Type Name Description
    long hash

    The Hash basis value.

    int value

    The value to Hash.

    Returns
    Type Description
    long

    The calculated Hash.

    GetHash(string)

    Calculates a Long Hash using the given String.

    Declaration
    public static long GetHash(string chars)
    Parameters
    Type Name Description
    string chars

    The String used to calculate the Hash.

    Returns
    Type Description
    long

    The calculated Hash.

    GetHashInitialValue()

    Gets the hashing base value.

    Declaration
    public static long GetHashInitialValue()
    Returns
    Type Description
    long

    The Hash base value.

    In this article
    Back to top Generated by DocFX