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