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 ByteBufferallocateDirectWithNativeOrder(int capacity) Deprecated.static voidfree(ByteBuffer buffer) Deprecated.UseallocateDirectBufferWithNativeOrder(int)instead.static longmemoryAddress(ByteBuffer buffer) Returns the memory address of the given directByteBuffer.private static longmemoryAddress0(ByteBuffer buffer) static ByteBufferwrapMemoryAddress(long memoryAddress, int capacity) static ByteBufferwrapMemoryAddressWithNativeOrder(long memoryAddress, int capacity)
-
Constructor Details
-
Buffer
private Buffer()
-
-
Method Details
-
free
Deprecated.UseallocateDirectBufferWithNativeOrder(int)instead.Free the directByteBuffer. -
allocateDirectWithNativeOrder
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
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
-
wrapMemoryAddressWithNativeOrder
-
wrapMemoryAddress
-
allocateDirectBufferWithNativeOrder(int)instead.