Class Buffer

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

@UnstableApi public final class Buffer extends java.lang.Object
  • Constructor Details

    • Buffer

      private Buffer()
  • Method Details

    • free

      @Deprecated public static void free(java.nio.ByteBuffer buffer)
      Free the direct ByteBuffer.
    • allocateDirectWithNativeOrder

      @Deprecated public static java.nio.ByteBuffer allocateDirectWithNativeOrder(int capacity)
      Returns a new ByteBuffer which has the same ByteOrder as the native order of the machine.
    • allocateDirectBufferWithNativeOrder

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

      public static long memoryAddress(java.nio.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(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)