Class IntBuffer

    • Method Detail

      • allocate

        public static IntBuffer allocate​(int size)
        Allocate a IntBuffer with fixed size
        Parameters:
        size - the target buffer size
        Returns:
        a IntBuffer with fixed size
      • flip

        public void flip()
        Description copied from class: DataBuffer
        Flip all the buffers. Make them all readable.
        Specified by:
        flip in class DataBuffer<Integer>
      • put

        public void put​(Integer integer)
        Description copied from class: DataBuffer
        Put the element into the buffer
        Specified by:
        put in class DataBuffer<Integer>
        Parameters:
        integer - the element need to be put in the buffer
      • get

        public Integer get()
        Description copied from class: DataBuffer
        Get element in the buffer in order
        Specified by:
        get in class DataBuffer<Integer>
        Returns:
        element in the buffer in order
      • get

        public Integer get​(int index)
        Description copied from class: DataBuffer
        Get element in the buffer by index
        Specified by:
        get in class DataBuffer<Integer>
        Parameters:
        index - the element index
        Returns:
        element in the index of the buffer