Class Buffer

    • Method Detail

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