# GetDirectSByteBuffer(nint)

> Returns the NativeArray backed by the same memory region as the given direct java.nio.Buffer.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

## GetDirectSByteBuffer(IntPtr)

```csharp
public static NativeArray<sbyte> GetDirectSByteBuffer(nint buffer)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The direct java.nio.Buffer.

### Returns

| Type                                                                                     | Description                                                           |
| ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [NativeArray\<sbyte>](/engine/7000.0/script-reference/unity/collections/nativearray1.md) | The NativeArray backed by the same memory region as the given buffer. |

### Remarks

Additional Resources: [AndroidJNI.GetDirectBufferAddress](/engine/7000.0/script-reference/unityengine/androidjni/getdirectbufferaddress.md)
