Package io.netty.channel.unix
Class Buffer
java.lang.Object
io.netty.channel.unix.Buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Returns the size of a pointer.private static int
static ByteBuffer
allocateDirectWithNativeOrder
(int capacity) Returns a newByteBuffer
which has the sameByteOrder
as the native order of the machine.static void
free
(ByteBuffer buffer) Free the directByteBuffer
.static long
memoryAddress
(ByteBuffer buffer) Returns the memory address of the given directByteBuffer
.private static long
memoryAddress0
(ByteBuffer buffer)
-
Constructor Details
-
Buffer
private Buffer()
-
-
Method Details
-
free
Free the directByteBuffer
. -
allocateDirectWithNativeOrder
Returns a newByteBuffer
which has the sameByteOrder
as the native order of the machine. -
memoryAddress
Returns the memory address of the given directByteBuffer
. -
addressSize
public static int addressSize()Returns the size of a pointer. -
addressSize0
private static int addressSize0() -
memoryAddress0
-