Class NativeArrayUnsafeUtility | DOTS Runtime | 0.32.0-preview.54
docs.unity.cn
    Show / Hide Table of Contents

    Class NativeArrayUnsafeUtility

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

    Methods

    ConvertExistingDataToNativeArray<T>(Void*, Int32, Allocator)

    Declaration
    public static NativeArray<T> ConvertExistingDataToNativeArray<T>(void *dataPointer, int length, Allocator allocator)
        where T : struct
    Parameters
    Type Name Description
    Void* dataPointer
    Int32 length
    Allocator allocator
    Returns
    Type Description
    NativeArray<T>
    Type Parameters
    Name Description
    T

    GetUnsafeBufferPointerWithoutChecks<T>(NativeArray<T>)

    Declaration
    public static void *GetUnsafeBufferPointerWithoutChecks<T>(NativeArray<T> nativeArray)
        where T : struct
    Parameters
    Type Name Description
    NativeArray<T> nativeArray
    Returns
    Type Description
    Void*
    Type Parameters
    Name Description
    T

    GetUnsafePtr<T>(NativeArray<T>)

    Declaration
    public static void *GetUnsafePtr<T>(this NativeArray<T> nativeArray)
        where T : struct
    Parameters
    Type Name Description
    NativeArray<T> nativeArray
    Returns
    Type Description
    Void*
    Type Parameters
    Name Description
    T

    GetUnsafeReadOnlyPtr<T>(NativeArray<T>)

    Declaration
    public static void *GetUnsafeReadOnlyPtr<T>(this NativeArray<T> nativeArray)
        where T : struct
    Parameters
    Type Name Description
    NativeArray<T> nativeArray
    Returns
    Type Description
    Void*
    Type Parameters
    Name Description
    T
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Saturday, January 23, 2021