Class CommandBuffer

    • Constructor Detail

      • CommandBuffer

        public CommandBuffer​(int size)
    • Method Detail

      • flip

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

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

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