Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeSliceUnsafeUtility

Contains unsafe methods for working with NativeSlice<T> instances.
Read time 1 minuteLast updated 18 days ago

Definition

public static class NativeSliceUnsafeUtility

Static Methods

Method

Description

ConvertExistingDataToNativeSliceCreates a new NativeSlice<T> from existing data.
GetAtomicSafetyHandleGets the AtomicSafetyHandle for a NativeSlice<T>.
GetUnsafePtrGets a NativeSlice<T> memory buffer pointer and checks whether the native array can be written to.
GetUnsafeReadOnlyPtrGets a NativeSlice<T> memory buffer pointer and checks whether the native array can be read from.
SetAtomicSafetyHandleSet the AtomicSafetyHandle on NativeSlice<T>.