@UnstableApi public final class Buffer extends Object
Modifier and Type | Method and Description |
---|---|
static int |
addressSize()
Returns the size of a pointer.
|
static ByteBuffer |
allocateDirectWithNativeOrder(int capacity)
Returns a new
ByteBuffer which has the same ByteOrder as the native order of the machine. |
static void |
free(ByteBuffer buffer)
Free the direct
ByteBuffer . |
static long |
memoryAddress(ByteBuffer buffer)
Returns the memory address of the given direct
ByteBuffer . |
public static void free(ByteBuffer buffer)
ByteBuffer
.public static ByteBuffer allocateDirectWithNativeOrder(int capacity)
ByteBuffer
which has the same ByteOrder
as the native order of the machine.public static long memoryAddress(ByteBuffer buffer)
ByteBuffer
.public static int addressSize()
Copyright © 2008–2024 The Netty Project. All rights reserved.