Package io.netty.channel.unix
Class Buffer
- java.lang.Object
-
- io.netty.channel.unix.Buffer
-
@UnstableApi public final class Buffer extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Buffer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
addressSize()
Returns the size of a pointer.private static int
addressSize0()
static java.nio.ByteBuffer
allocateDirectWithNativeOrder(int capacity)
Returns a newByteBuffer
which has the sameByteOrder
as the native order of the machine.static void
free(java.nio.ByteBuffer buffer)
Free the directByteBuffer
.static long
memoryAddress(java.nio.ByteBuffer buffer)
Returns the memory address of the given directByteBuffer
.private static long
memoryAddress0(java.nio.ByteBuffer buffer)
-
-
-
Method Detail
-
free
public static void free(java.nio.ByteBuffer buffer)
Free the directByteBuffer
.
-
allocateDirectWithNativeOrder
public static java.nio.ByteBuffer allocateDirectWithNativeOrder(int capacity)
Returns a newByteBuffer
which has the sameByteOrder
as the native order of the machine.
-
memoryAddress
public static long memoryAddress(java.nio.ByteBuffer buffer)
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
private static long memoryAddress0(java.nio.ByteBuffer buffer)
-
-