Class TypeUtils | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class TypeUtils

    Inheritance
    System.Object
    TypeUtils
    Namespace: Unity.Entities.BuildUtils
    Syntax
    public static class TypeUtils

    Methods

    AlignAndSizeOfField(FieldReference, Int32)

    Declaration
    public static TypeUtils.AlignAndSize AlignAndSizeOfField(FieldReference fieldRef, int bits)
    Parameters
    Type Name Description
    FieldReference fieldRef
    System.Int32 bits
    Returns
    Type Description
    TypeUtils.AlignAndSize

    AlignAndSizeOfType(MetadataType, Int32)

    Declaration
    public static TypeUtils.AlignAndSize AlignAndSizeOfType(MetadataType mtype, int bits)
    Parameters
    Type Name Description
    MetadataType mtype
    System.Int32 bits
    Returns
    Type Description
    TypeUtils.AlignAndSize

    AlignAndSizeOfType(TypeReference, Int32)

    Declaration
    public static TypeUtils.AlignAndSize AlignAndSizeOfType(TypeReference typeRef, int bits)
    Parameters
    Type Name Description
    TypeReference typeRef
    System.Int32 bits
    Returns
    Type Description
    TypeUtils.AlignAndSize

    AlignUp(Int32, Int32)

    Declaration
    public static int AlignUp(int sz, int align)
    Parameters
    Type Name Description
    System.Int32 sz
    System.Int32 align
    Returns
    Type Description
    System.Int32

    GetEntityFieldOffsets(TypeDefinition, Int32)

    Declaration
    public static List<int> GetEntityFieldOffsets(TypeDefinition type, int archBits)
    Parameters
    Type Name Description
    TypeDefinition type
    System.Int32 archBits
    Returns
    Type Description
    System.Collections.Generic.List<System.Int32>

    GetFieldOffsetsOf(String, TypeDefinition, Int32)

    Declaration
    public static List<int> GetFieldOffsetsOf(string queryFullTypeName, TypeDefinition typeToLookIn, int archBits)
    Parameters
    Type Name Description
    System.String queryFullTypeName
    TypeDefinition typeToLookIn
    System.Int32 archBits
    Returns
    Type Description
    System.Collections.Generic.List<System.Int32>

    GetFieldOffsetsOf(TypeReference, TypeDefinition, Int32)

    Declaration
    public static List<int> GetFieldOffsetsOf(TypeReference typeToFind, TypeDefinition typeToLookIn, int archBits)
    Parameters
    Type Name Description
    TypeReference typeToFind
    TypeDefinition typeToLookIn
    System.Int32 archBits
    Returns
    Type Description
    System.Collections.Generic.List<System.Int32>

    GetFieldOffsetsOfByFieldName(String, TypeDefinition, Int32)

    Declaration
    public static List<int> GetFieldOffsetsOfByFieldName(string fieldName, TypeDefinition typeToLookIn, int archBits)
    Parameters
    Type Name Description
    System.String fieldName
    TypeDefinition typeToLookIn
    System.Int32 archBits
    Returns
    Type Description
    System.Collections.Generic.List<System.Int32>

    HasNestedDynamicArrayType(TypeReference)

    Declaration
    public static bool HasNestedDynamicArrayType(TypeReference type)
    Parameters
    Type Name Description
    TypeReference type
    Returns
    Type Description
    System.Boolean

    PreprocessTypeFields(TypeDefinition, Int32)

    Declaration
    public static void PreprocessTypeFields(TypeDefinition valuetype, int bits)
    Parameters
    Type Name Description
    TypeDefinition valuetype
    System.Int32 bits

    ValidateAllowedObjectType(TypeReference)

    Declaration
    public static void ValidateAllowedObjectType(TypeReference typeRef)
    Parameters
    Type Name Description
    TypeReference typeRef
    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