Class Buffer

java.lang.Object
io.netty.channel.unix.Buffer

@UnstableApi public final class Buffer extends Object
  • Constructor Details

    • Buffer

      private Buffer()
  • Method Details

    • free

      public static void free(ByteBuffer buffer)
      Free the direct ByteBuffer.
    • allocateDirectWithNativeOrder

      public static ByteBuffer allocateDirectWithNativeOrder(int capacity)
      Returns a new ByteBuffer which has the same ByteOrder as the native order of the machine.
    • memoryAddress

      public static long memoryAddress(ByteBuffer buffer)
      Returns the memory address of the given direct ByteBuffer.
    • addressSize

      public static int addressSize()
      Returns the size of a pointer.
    • addressSize0

      private static int addressSize0()
    • memoryAddress0

      private static long memoryAddress0(ByteBuffer buffer)