Class Buffer


  • @UnstableApi
    public final class Buffer
    extends java.lang.Object
    • Method Detail

      • 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.
      • wrapMemoryAddressWithNativeOrder

        public static java.nio.ByteBuffer wrapMemoryAddressWithNativeOrder​(long memoryAddress,
                                                                           int capacity)
      • wrapMemoryAddress

        public static java.nio.ByteBuffer wrapMemoryAddress​(long memoryAddress,
                                                            int capacity)