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

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

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