Class UnsafeUtilityEx | Collections | 0.6.0-preview.9
docs.unity.cn
    Show / Hide Table of Contents

    Class UnsafeUtilityEx

    Inheritance
    Object
    UnsafeUtilityEx
    Namespace: Unity.Collections.LowLevel.Unsafe
    Syntax
    public static class UnsafeUtilityEx

    Methods

    ArrayElementAsRef<T>(Void*, Int32)

    Declaration
    public static T ArrayElementAsRef<T>(void *ptr, int index)
        where T : struct
    Parameters
    Type Name Description
    Void* ptr
    Int32 index
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    As<U, T>(ref U)

    Declaration
    public static T As<U, T>(ref U from)
    Parameters
    Type Name Description
    U from
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    U
    T

    AsRef<T>(Void*)

    Declaration
    public static T AsRef<T>(void *ptr)
        where T : struct
    Parameters
    Type Name Description
    Void* ptr
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX