docs.unity.cn
    Show / Hide Table of Contents

    Method CalculateMemoryOrdering

    CalculateMemoryOrdering(Type, out Boolean, Dictionary<Type, UInt64>)

    Calculates a MemoryOrdering for the input type.

    Declaration
    public static ulong CalculateMemoryOrdering(Type type, out bool hasCustomMemoryOrder, Dictionary<Type, ulong> hashCache = null)
    Parameters
    Type Name Description
    Type type

    Type to inspect.

    Boolean hasCustomMemoryOrder

    Out param; set to true if the memory order has been explicitly overriden for the input type.

    Dictionary<Type, UInt64> hashCache

    Cache for Types and their hashes. Used for quicker lookups when hashing.

    Returns
    Type Description
    UInt64

    MemoryOrdering for the input type.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023