NativeSliceUnsafeUtility
Contains unsafe methods for working with NativeSlice<T> instances.
Read time 1 minuteLast updated 18 days ago
Definition
- Type: Class
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public static class NativeSliceUnsafeUtility
Static Methods
Method | Description |
|---|---|
| ConvertExistingDataToNativeSlice | Creates a new NativeSlice<T> from existing data. |
| GetAtomicSafetyHandle | Gets the AtomicSafetyHandle for a NativeSlice<T>. |
| GetUnsafePtr | Gets a NativeSlice<T> memory buffer pointer and checks whether the native array can be written to. |
| GetUnsafeReadOnlyPtr | Gets a NativeSlice<T> memory buffer pointer and checks whether the native array can be read from. |
| SetAtomicSafetyHandle | Set the AtomicSafetyHandle on NativeSlice<T>. |