Class TypeHash | Entities | 0.2.0-preview.18
docs.unity.cn
    Show / Hide Table of Contents

    Class TypeHash

    Inheritance
    Object
    TypeHash
    Namespace: Unity.Entities
    Syntax
    public class TypeHash

    Methods

    CalculateMemoryOrdering(Type)

    Declaration
    public static ulong CalculateMemoryOrdering(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    UInt64

    CalculateStableTypeHash(Type)

    Declaration
    public static ulong CalculateStableTypeHash(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    UInt64

    CombineFNV1A64(UInt64, UInt64[])

    Declaration
    public static ulong CombineFNV1A64(ulong hash, params ulong[] values)
    Parameters
    Type Name Description
    UInt64 hash
    UInt64[] values
    Returns
    Type Description
    UInt64

    FNV1A64(Int32)

    Declaration
    public static ulong FNV1A64(int val)
    Parameters
    Type Name Description
    Int32 val
    Returns
    Type Description
    UInt64

    FNV1A64(String)

    Declaration
    public static ulong FNV1A64(string text)
    Parameters
    Type Name Description
    String text
    Returns
    Type Description
    UInt64

    HashType(Type, Int32)

    Declaration
    public static ulong HashType(Type type, int fieldIndex = 0)
    Parameters
    Type Name Description
    Type type
    Int32 fieldIndex
    Returns
    Type Description
    UInt64
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX