JNIEnv.GetDirectBufferCapacity(IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the capacity of a direct Java NIO buffer.
public static long GetDirectBufferCapacity(IntPtr buf);
static member GetDirectBufferCapacity : nativeint -> int64
Parameters
- buf
-
IntPtr
nativeint
A valid, non-null JNI reference to a direct Java NIO buffer.
Returns
The capacity in elements, or -1 if the object is not a direct buffer, is an unaligned view on a processor that does not support unaligned access, or is used on a virtual machine without JNI direct-buffer support.
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.