Package io.netty.channel.unix
Class Buffer
java.lang.Object
io.netty.channel.unix.Buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the size of a pointer.private static intstatic ByteBufferallocateDirectWithNativeOrder(int capacity) Returns a newByteBufferwhich has the sameByteOrderas the native order of the machine.static voidfree(ByteBuffer buffer) Free the directByteBuffer.static longmemoryAddress(ByteBuffer buffer) Returns the memory address of the given directByteBuffer.private static longmemoryAddress0(ByteBuffer buffer)
-
Constructor Details
-
Buffer
private Buffer()
-
-
Method Details
-
free
Free the directByteBuffer. -
allocateDirectWithNativeOrder
Returns a newByteBufferwhich has the sameByteOrderas 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
-