A float buffer.
This class defines four categories of operations upon float buffers:
Float buffers can be created either by
, which allocates space for the buffer's
float array into a buffer, or by creating a
view of an existing byte buffer.
Like a byte buffer, a float buffer is either direct or non-direct. A
float buffer created via the wrap methods of this class will
be non-direct. A float buffer created as a view of a byte buffer will
be direct if, and only if, the byte buffer itself is direct. Whether or not
a float buffer is direct may be determined by invoking the
Methods in this class that do not otherwise have a value to return are specified to return the buffer upon which they are invoked. This allows method invocations to be chained.
Public Method Summary
Allocates a new float buffer.
Returns the float array that backs this buffer (optional operation).
Returns the offset within this buffer's backing array of the first element of the buffer (optional operation).
Creates a new, read-only float buffer that shares this buffer's content.
Compacts this buffer (optional operation).