기술 자료

Unity Engine

Unity Engine

NativeSliceUnsafeUtility

Contains unsafe methods for working with NativeSlice<T> instances.
읽는 시간 1분최근 업데이트: 한 달 전

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>.