Language

JNIEnv.GetDirectBufferAddress(IntPtr) Method

Definition

Gets the native address of a direct Java NIO buffer.

public static IntPtr GetDirectBufferAddress(IntPtr buf);
static member GetDirectBufferAddress : nativeint -> nativeint

Parameters

buf
IntPtr

nativeint

A valid, non-null JNI reference to a direct Java NIO buffer.

Returns

IntPtr

nativeint

The start address of the buffer's memory region, or Zero if the region is undefined, the object is not a direct buffer, or the virtual machine does not support JNI access to direct buffers.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to