Package io.netty.channel.unix
Class Buffer
- java.lang.Object
-
- io.netty.channel.unix.Buffer
-
@UnstableApi public final class Buffer extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static intaddressSize()Returns the size of a pointer.static io.netty.util.internal.CleanableDirectBufferallocateDirectBufferWithNativeOrder(int capacity)Returns a newCleanableDirectBufferwhich has the sameByteOrderas the native order of the machine.static ByteBufferallocateDirectWithNativeOrder(int capacity)Deprecated.UseallocateDirectBufferWithNativeOrder(int)instead.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 Detail
-
free
@Deprecated public static void free(ByteBuffer buffer)
Deprecated.UseallocateDirectBufferWithNativeOrder(int)instead.Free the directByteBuffer.
-
allocateDirectWithNativeOrder
@Deprecated public static ByteBuffer allocateDirectWithNativeOrder(int capacity)
Deprecated.UseallocateDirectBufferWithNativeOrder(int)instead.Returns a newByteBufferwhich has the sameByteOrderas the native order of the machine.
-
allocateDirectBufferWithNativeOrder
public static io.netty.util.internal.CleanableDirectBuffer allocateDirectBufferWithNativeOrder(int capacity)
Returns a newCleanableDirectBufferwhich has the sameByteOrderas the native order of the machine.
-
memoryAddress
public static long memoryAddress(ByteBuffer buffer)
Returns the memory address of the given directByteBuffer.
-
addressSize
public static int addressSize()
Returns the size of a pointer.
-
wrapMemoryAddressWithNativeOrder
public static ByteBuffer wrapMemoryAddressWithNativeOrder(long memoryAddress, int capacity)
-
wrapMemoryAddress
public static ByteBuffer wrapMemoryAddress(long memoryAddress, int capacity)
-
-