Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeSliceUnsafeUtility

Contains unsafe methods for working with NativeSlice instances.
Read time 1 minuteLast updated 17 days ago

Definition

public static class NativeSliceUnsafeUtility

Static Methods

Method

Description

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