Class DataBuffer<T>

    • Constructor Detail

      • DataBuffer

        public DataBuffer()
    • Method Detail

      • flip

        public abstract void flip()
        Flip all the buffers. Make them all readable.
      • put

        public abstract void put​(T t)
        Put the element into the buffer
        Parameters:
        t - the element need to be put in the buffer
      • get

        public abstract T get()
        Get element in the buffer in order
        Returns:
        element in the buffer in order
      • get

        public abstract T get​(int index)
        Get element in the buffer by index
        Parameters:
        index - the element index
        Returns:
        element in the index of the buffer