Example usage for Java java.nio DoubleBuffer fields, constructors, methods, implement or subclass
The text is from its open source code.
DoubleBuffer | allocate(int capacity) Creates a double buffer based on a newly allocated double array. |
double[] | array() Returns the double array which this buffer is based on, if there is one. |
int | arrayOffset() Returns the offset of the double array which this buffer is based on, if there is one. |
DoubleBuffer | asReadOnlyBuffer() Returns a read-only buffer that shares its content with this buffer. |
int | capacity() Returns the capacity of this buffer. |
Buffer | clear() Clears this buffer. |
DoubleBuffer | compact() Compacts this double buffer. |
int | compareTo(DoubleBuffer otherBuffer) Compare the remaining doubles of this buffer to another double buffer's remaining doubles. |
DoubleBuffer | duplicate() Returns a duplicated buffer that shares its content with this buffer. |
DoubleBuffer | get(double[] dest) Reads doubles from the current position into the specified double array and increases the position by the number of doubles read. |
double | get(int index) Returns a double at the specified index; the position is not changed. |
double | get() Returns the double at the current position and increases the position by 1. |
DoubleBuffer | get(double[] dest, int off, int len) Reads doubles from the current position into the specified double array, starting from the specified offset, and increases the position by the number of doubles read. |
boolean | hasArray() Indicates whether this buffer is based on a double array and is read/write. |
int | hashCode() Returns a hash code value for the object. |
boolean | hasRemaining() Indicates if there are elements remaining in this buffer, that is if position < limit . |
boolean | isDirect() Indicates whether this buffer is direct. |
int | limit() Returns the limit of this buffer. |
Buffer | mark() Marks the current position, so that the position may return to this point later by calling reset() . |
ByteOrder | order() Returns the byte order used by this buffer when converting doubles from/to bytes. |
int | position() Returns the position of this buffer. |
Buffer | position(int newPosition) Sets the position of this buffer. |
DoubleBuffer | put(double d) Writes the given double to the current position and increases the position by 1. |
DoubleBuffer | put(double[] src) Writes doubles from the given double array to the current position and increases the position by the number of doubles written. |
DoubleBuffer | put(DoubleBuffer src) Writes all the remaining doubles of the src double buffer to this buffer's current position, and increases both buffers' position by the number of doubles copied. |
DoubleBuffer | put(int index, double d) Write a double to the specified index of this buffer and the position is not changed. |
DoubleBuffer | put(double[] src, int off, int len) Writes doubles from the given double array, starting from the specified offset, to the current position and increases the position by the number of doubles written. |
int | remaining() Returns the number of remaining elements in this buffer, that is limit - position . |
Buffer | reset() Resets the position of this buffer to the mark . |
Buffer | rewind() Rewinds this buffer. |
DoubleBuffer | slice() Returns a sliced buffer that shares its content with this buffer. |
String | toString() Returns a string representing the state of this double buffer. |
DoubleBuffer | wrap(double[] array, int start, int len) Creates a new double buffer by wrapping the given double array. |
DoubleBuffer | wrap(double[] array) Creates a new double buffer by wrapping the given double array. |