Class DirectDataBufferInt

    • Constructor Detail

      • DirectDataBufferInt

        public DirectDataBufferInt​(int size)
        Constructs an nio integer-based DataBuffer with a single bank and the specified size.
        Parameters:
        size - The size of the DataBuffer.
      • DirectDataBufferInt

        public DirectDataBufferInt​(int size,
                                   int numBanks)
        Constructs an nio integer-based DataBuffer with the specified number of banks, all of which are the specified size.
        Parameters:
        size - The size of the banks in the DataBuffer.
        numBanks - The number of banks in the aDataBuffer.
      • DirectDataBufferInt

        public DirectDataBufferInt​(ByteBuffer dataArray,
                                   int size)
        Constructs an nio integer-based DataBuffer with a single bank using the specified array.

        Only the first size elements should be used by accessors of this DataBuffer. dataArray must be large enough to hold size elements.

        Parameters:
        dataArray - The NIO ByteBuffer array, holding the integer data for the DataBuffer.
        size - The size of the DataBuffer bank.