List of utility methods to do DoubleBuffer Create
DoubleBuffer | newDoubleBuffer(int numDoubles) new Double Buffer ByteBuffer buffer = ByteBuffer.allocateDirect(numDoubles * 8);
buffer.order(ByteOrder.nativeOrder());
return buffer.asDoubleBuffer();
|
DoubleBuffer | newDoubleBuffer(int numElements) new Double Buffer ByteBuffer bb = newByteBuffer(numElements * SIZEOF_DOUBLE);
return bb.asDoubleBuffer();
|