Class XXHash | Entities | 0.10.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class XXHash

    XXHash implementation.

    Inheritance
    Object
    XXHash
    Namespace: Unity.Core
    Syntax
    public static class XXHash

    Methods

    Hash32(Byte*, Int32, UInt32)

    Generate a 32-bit xxHash value.

    Declaration
    public static uint Hash32(byte *buffer, int bufferLength, uint seed = 0U)
    Parameters
    Type Name Description
    Byte* buffer

    Input buffer.

    Int32 bufferLength
    UInt32 seed

    Optional seed.

    Returns
    Type Description
    UInt32

    32-bit hash value.

    Hash32(Stream, UInt32)

    Generate a 32-bit xxHash value from a stream.

    Declaration
    public static uint Hash32(Stream stream, uint seed = 0U)
    Parameters
    Type Name Description
    Stream stream

    Input stream.

    UInt32 seed

    Optional seed.

    Returns
    Type Description
    UInt32

    32-bit hash value.

    Hash64(Byte*, Int32, UInt64)

    Generate a 64-bit xxHash value.

    Declaration
    public static ulong Hash64(byte *buffer, int bufferLength, ulong seed = 0UL)
    Parameters
    Type Name Description
    Byte* buffer

    Input buffer.

    Int32 bufferLength
    UInt64 seed

    Optional seed.

    Returns
    Type Description
    UInt64

    Computed 64-bit hash value.

    Hash64(Stream, UInt64)

    Generate a 64-bit xxHash value from a stream.

    Declaration
    public static ulong Hash64(Stream stream, ulong seed = 0UL)
    Parameters
    Type Name Description
    Stream stream

    Input stream.

    UInt64 seed

    Optional seed.

    Returns
    Type Description
    UInt64

    Computed 64-bit hash value.

    In This Article
    • Methods
      • Hash32(Byte*, Int32, UInt32)
      • Hash32(Stream, UInt32)
      • Hash64(Byte*, Int32, UInt64)
      • Hash64(Stream, UInt64)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023