Class NativeLongArray


  • final class NativeLongArray
    extends java.lang.Object
    • Field Detail

      • memory

        private java.nio.ByteBuffer memory
      • memoryAddress

        private long memoryAddress
      • capacity

        private int capacity
      • size

        private int size
    • Constructor Detail

      • NativeLongArray

        NativeLongArray​(int capacity)
    • Method Detail

      • idx

        private static int idx​(int index)
      • calculateBufferCapacity

        private static int calculateBufferCapacity​(int capacity)
      • add

        void add​(long value)
      • clear

        void clear()
      • isEmpty

        boolean isEmpty()
      • size

        int size()
      • free

        void free()
      • memoryAddress

        long memoryAddress()
      • memoryAddressEnd

        long memoryAddressEnd()
      • memoryOffset

        private long memoryOffset​(int index)
      • reallocIfNeeded

        private void reallocIfNeeded()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object