Documentation

Unity Engine

Unity Engine

GetUnsafeReadOnlyPtr<T>(NativeSlice<T>)

Gets a NativeSlice<T> memory buffer pointer and checks whether the native array can be read from.
Read time 1 minuteLast updated 14 days ago

Definition

public static void* GetUnsafeReadOnlyPtr<T>(this NativeSlice<T> nativeSlice) where T : struct

Parameters

nativeSlice

The NativeSlice to check.

Returns

Type

Description

void*The memory buffer pointer of
nativeSlice
.