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 CleanableDirectBufferallocateDirectBufferWithNativeOrder(int capacity) Returns a newCleanableDirectBufferwhich has the sameByteOrderas the native order of the machine.static java.nio.ByteBufferallocateDirectWithNativeOrder(int capacity) Deprecated.static voidfree(java.nio.ByteBuffer buffer) Deprecated.UseallocateDirectBufferWithNativeOrder(int)instead.static longmemoryAddress(java.nio.ByteBuffer buffer) Returns the memory address of the given directByteBuffer.private static longmemoryAddress0(java.nio.ByteBuffer buffer) static java.nio.ByteBufferwrapMemoryAddress(long memoryAddress, int capacity) static java.nio.ByteBufferwrapMemoryAddressWithNativeOrder(long memoryAddress, int capacity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Buffer
private Buffer()
-
-
Method Details
-
free
@Deprecated public static void free(java.nio.ByteBuffer buffer) Deprecated.UseallocateDirectBufferWithNativeOrder(int)instead.Free the directByteBuffer. -
allocateDirectWithNativeOrder
@Deprecated public static java.nio.ByteBuffer allocateDirectWithNativeOrder(int capacity) Deprecated.UseallocateDirectBufferWithNativeOrder(int)instead.Returns a newByteBufferwhich has the sameByteOrderas the native order of the machine. -
allocateDirectBufferWithNativeOrder
Returns a newCleanableDirectBufferwhich has the sameByteOrderas 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) -
wrapMemoryAddressWithNativeOrder
public static java.nio.ByteBuffer wrapMemoryAddressWithNativeOrder(long memoryAddress, int capacity) -
wrapMemoryAddress
public static java.nio.ByteBuffer wrapMemoryAddress(long memoryAddress, int capacity)
-
allocateDirectBufferWithNativeOrder(int)instead.