{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method Hash64 | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Hash64

    Hash64(void*, long)

    Compute a 64bits hash of a memory region

    Declaration
    public static uint2 Hash64(void* input, long length)
    Parameters
    Type Name Description
    void* input

    The memory buffer, can't be null

    long length

    The length of the memory buffer, can be zero

    Returns
    Type Description
    uint2

    The hash result

    Hash64<T>(in T)

    Compute a 64bits hash from the contents of the input struct

    Declaration
    public static uint2 Hash64<T>(in T input) where T : unmanaged
    Parameters
    Type Name Description
    T input

    The input struct that will be hashed

    Returns
    Type Description
    uint2

    The hash result

    Type Parameters
    Name Description
    T

    The input type.

    Hash64(void*, long, ulong)

    Compute a 64bits hash of a memory region using a given seed value

    Declaration
    public static uint2 Hash64(void* input, long length, ulong seed)
    Parameters
    Type Name Description
    void* input

    The memory buffer, can't be null

    long length

    The length of the memory buffer, can be zero

    ulong seed

    The seed value to alter the hash computation from

    Returns
    Type Description
    uint2

    The hash result

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)