# GetUnsafePtr<T>(NativeSlice<T>)

> Gets a NativeSlice memory buffer pointer and checks whether the native array can be written to.

## Definition

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

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

### Parameters

**** (\[NativeSlice\<T>]\(/engine/6000.5/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`. |
