public interface LayoutBB extends Layout
int[] read(LayoutBB index, int[] pa) {
while (index.hasNext()) {
LayoutBB.Chunk chunk = index.next();
IntBuffer buff = chunk.getIntBuffer();
buff.position(chunk.getSrcElem());
int pos = (int) chunk.getDestElem();
for (int i = 0; i < chunk.getNelems(); i++)
pa[pos++] = buff.get();
}
return pa;
}
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LayoutBB.Chunk
A contiguous chunk of data as a ByteBuffer.
|
| Modifier and Type | Method and Description |
|---|---|
LayoutBB.Chunk |
next()
Get the next chunk, not null if hasNext() is true.
|
getElemSize, getTotalNelems, hasNextLayoutBB.Chunk next()
Layout