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