# GetDirectBufferAddress(nint)

> Fetches and returns the starting address of the memory region referenced by the given direct java.nio.Buffer.

## Definition

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

## GetDirectBufferAddress(IntPtr)

```csharp
public static sbyte* GetDirectBufferAddress(nint buffer)
```

### Parameters

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

### Returns

| Type                                                           | Description                                                                                                                |
| -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [sbyte\*](https://learn.microsoft.com/dotnet/api/system.sbyte) | The starting address of the memory region, or null if the buffer isn't a direct buffer or direct buffers aren't supported. |

### Remarks

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
