public unsafe static void *GetUnsafeReadOnlyPtr <T>(this NativeSlice <T> nativeSlice) where T : struct
 {
     AtomicSafetyHandle.CheckReadAndThrow(nativeSlice.m_Safety);
     return((void *)nativeSlice.m_Buffer);
 }
Ejemplo n.º 2
0
 public static unsafe void *GetUnsafeReadOnlyPtr <T>(this NativeArray <T> nativeArray) where T : struct
 {
     AtomicSafetyHandle.CheckReadAndThrow(nativeArray.m_Safety);
     return(nativeArray.m_Buffer);
 }