Class Buffer
java.lang.Object
io.netty.channel.unix.Buffer
-
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the size of a pointer.static 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.static ByteBufferwrapMemoryAddress(long memoryAddress, int capacity) static ByteBufferwrapMemoryAddressWithNativeOrder(long memoryAddress, int capacity)
-
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. -
wrapMemoryAddressWithNativeOrder
-
wrapMemoryAddress
-
allocateDirectBufferWithNativeOrder(int)instead.