# GetUnsafeReadOnlyPtr<T>(NativeSlice<T>)

> Gets a NativeSlice<T> memory buffer pointer and checks whether the native array can be read from.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public static void* GetUnsafeReadOnlyPtr<T>(this NativeSlice<T> nativeSlice) where T : struct
```

### Parameters

**** (\[NativeSlice\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeslice1)): The NativeSlice to check.

### Returns

| Type                                                         | Description                                 |
| ------------------------------------------------------------ | ------------------------------------------- |
| [void\*](https://learn.microsoft.com/dotnet/api/system.void) | The memory buffer pointer of `nativeSlice`. |
