@UnstableApi public final class Buffer extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static int |
addressSize()
Returns the size of a pointer.
|
static java.nio.ByteBuffer |
allocateDirectWithNativeOrder(int capacity)
Returns a new
ByteBuffer which has the same ByteOrder as the native order of the machine. |
static void |
free(java.nio.ByteBuffer buffer)
Free the direct
ByteBuffer . |
static long |
memoryAddress(java.nio.ByteBuffer buffer)
Returns the memory address of the given direct
ByteBuffer . |
public static void free(java.nio.ByteBuffer buffer)
ByteBuffer
.public static java.nio.ByteBuffer allocateDirectWithNativeOrder(int capacity)
ByteBuffer
which has the same ByteOrder
as the native order of the machine.public static long memoryAddress(java.nio.ByteBuffer buffer)
ByteBuffer
.public static int addressSize()