Show / Hide Table of Contents

Class NativeArrayUnsafeUtility

Inheritance
Object
NativeArrayUnsafeUtility
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Unity.Collections.LowLevel.Unsafe
Assembly: UnityEngine.dll
Syntax
public static class NativeArrayUnsafeUtility

Methods

| Improve this Doc View Source

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
| Improve this Doc View Source

GetAtomicSafetyHandle<T>(NativeArray<T>)

Declaration
public static AtomicSafetyHandle GetAtomicSafetyHandle<T>(NativeArray<T> array)
    where T : struct
Parameters
Type Name Description
NativeArray<T> array
Returns
Type Description
AtomicSafetyHandle
Type Parameters
Name Description
T
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

SetAtomicSafetyHandle<T>(ref NativeArray<T>, AtomicSafetyHandle)

Declaration
public static void SetAtomicSafetyHandle<T>(ref NativeArray<T> array, AtomicSafetyHandle safety)
    where T : struct
Parameters
Type Name Description
NativeArray<T> array
AtomicSafetyHandle safety
Type Parameters
Name Description
T
  • Improve this Doc
  • View Source
Back to top Generated by DocFX