Java java.nio FloatBuffer fields, constructors, methods, implement or subclass

Example usage for Java java.nio FloatBuffer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio FloatBuffer.

The text is from its open source code.

Method

FloatBufferallocate(int capacity)
Creates a float buffer based on a newly allocated float array.
float[]array()
Returns the float array which this buffer is based on, if there is one.
intarrayOffset()
Returns the offset of the float array which this buffer is based on, if there is one.
FloatBufferasReadOnlyBuffer()
Returns a read-only buffer that shares its content with this buffer.
intcapacity()
Returns the capacity of this buffer.
Bufferclear()
Clears this buffer.
FloatBuffercompact()
Compacts this float buffer.
intcompareTo(FloatBuffer otherBuffer)
Compare the remaining floats of this buffer to another float buffer's remaining floats.
FloatBufferduplicate()
Returns a duplicated buffer that shares its content with this buffer.
booleanequals(Object other)
Checks whether this float buffer is equal to another object.
Bufferflip()
Flips this buffer.
floatget()
Returns the float at the current position and increases the position by 1.
FloatBufferget(float[] dest)
Reads floats from the current position into the specified float array and increases the position by the number of floats read.
floatget(int index)
Returns a float at the specified index; the position is not changed.
FloatBufferget(float[] dest, int off, int len)
Reads floats from the current position into the specified float array, starting from the specified offset, and increases the position by the number of floats read.
booleanhasArray()
Indicates whether this buffer is based on a float array and is read/write.
inthashCode()
Returns a hash code value for the object.
booleanhasRemaining()
Indicates if there are elements remaining in this buffer, that is if position < limit .
booleanisDirect()
Indicates whether this buffer is direct.
intlimit()
Returns the limit of this buffer.
Buffermark()
Marks the current position, so that the position may return to this point later by calling reset().
ByteOrderorder()
Returns the byte order used by this buffer when converting floats from/to bytes.
intposition()
Returns the position of this buffer.
Bufferposition(int newPosition)
Sets the position of this buffer.
FloatBufferput(float f)
Writes the given float to the current position and increases the position by 1.
FloatBufferput(float[] src)
Writes floats from the given float array to the current position and increases the position by the number of floats written.
FloatBufferput(FloatBuffer src)
Writes all the remaining floats of the src float buffer to this buffer's current position, and increases both buffers' position by the number of floats copied.
FloatBufferput(int index, float f)
Writes a float to the specified index of this buffer; the position is not changed.
FloatBufferput(float[] src, int off, int len)
Writes floats from the given float array, starting from the specified offset, to the current position and increases the position by the number of floats written.
intremaining()
Returns the number of remaining elements in this buffer, that is limit - position .
Bufferreset()
Resets the position of this buffer to the mark.
Bufferrewind()
Rewinds this buffer.
FloatBufferslice()
Returns a sliced buffer that shares its content with this buffer.
StringtoString()
Returns a string representing the state of this float buffer.
FloatBufferwrap(float[] array)
Creates a new float buffer by wrapping the given float array.
FloatBufferwrap(float[] array, int start, int len)
Creates a new float buffer by wrapping the given float array.