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

    Class TypeUtils

    Inheritance
    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
    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
    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
    Int32 bits
    Returns
    Type Description
    TypeUtils.AlignAndSize

    AlignUp(Int32, Int32)

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

    GetEntityFieldOffsets(TypeReference, Int32)

    Declaration
    public static List<int> GetEntityFieldOffsets(TypeReference type, int archBits)
    Parameters
    Type Name Description
    TypeReference type
    Int32 archBits
    Returns
    Type Description
    List<Int32>

    GetFieldOffsetsOf(Func<FieldReference, TypeReference, Boolean>, TypeReference, Int32)

    Declaration
    public static List<int> GetFieldOffsetsOf(Func<FieldReference, TypeReference, bool> match, TypeReference typeToLookIn, int archBits)
    Parameters
    Type Name Description
    Func<FieldReference, TypeReference, Boolean> match
    TypeReference typeToLookIn
    Int32 archBits
    Returns
    Type Description
    List<Int32>

    GetFieldOffsetsOf(String, TypeReference, Int32)

    Declaration
    public static List<int> GetFieldOffsetsOf(string fieldTypeName, TypeReference typeToLookIn, int archBits)
    Parameters
    Type Name Description
    String fieldTypeName
    TypeReference typeToLookIn
    Int32 archBits
    Returns
    Type Description
    List<Int32>

    GetFieldOffsetsOf(TypeReference, TypeReference, Int32)

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

    GetFieldOffsetsOfByFieldName(String, TypeReference, Int32)

    Declaration
    public static List<int> GetFieldOffsetsOfByFieldName(string fieldName, TypeReference typeToLookIn, int archBits)
    Parameters
    Type Name Description
    String fieldName
    TypeReference typeToLookIn
    Int32 archBits
    Returns
    Type Description
    List<Int32>

    HasNestedDynamicArrayType(TypeReference)

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

    PreprocessTypeFields(TypeReference, Int32)

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

    ValidateAllowedObjectType(TypeReference)

    Declaration
    public static void ValidateAllowedObjectType(TypeReference typeRef)
    Parameters
    Type Name Description
    TypeReference typeRef
    In This Article
    • Methods
      • AlignAndSizeOfField(FieldReference, Int32)
      • AlignAndSizeOfType(MetadataType, Int32)
      • AlignAndSizeOfType(TypeReference, Int32)
      • AlignUp(Int32, Int32)
      • GetEntityFieldOffsets(TypeReference, Int32)
      • GetFieldOffsetsOf(Func<FieldReference, TypeReference, Boolean>, TypeReference, Int32)
      • GetFieldOffsetsOf(String, TypeReference, Int32)
      • GetFieldOffsetsOf(TypeReference, TypeReference, Int32)
      • GetFieldOffsetsOfByFieldName(String, TypeReference, Int32)
      • HasNestedDynamicArrayType(TypeReference)
      • PreprocessTypeFields(TypeReference, Int32)
      • ValidateAllowedObjectType(TypeReference)
    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