Constructs a byte-based
DataBuffer
with the specified arrays, size,
and offsets.
The number of banks is equal to
dataArray.length
. Each array must
be at least as large as
size
+ the corresponding
offset
.
There must be an entry in the
offset
array for each
dataArray
entry. For each bank, only elements
offset
through
offset
+
size
- 1 should be used by accessors of this
DataBuffer
.
Parameters:
-
dataArray - The byte arrays for the
DataBuffer
.
-
size - The size of the banks in the
DataBuffer
.
-
offsets - The offsets into each array.