A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/FloatBuffer.html below:

FloatBuffer (Java SE 21 & JDK 21)

All Implemented Interfaces:
Comparable<FloatBuffer>

A float buffer.

This class defines four categories of operations upon float buffers:

Float buffers can be created either by allocation, which allocates space for the buffer's content, by wrapping an existing 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 isDirect method.

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.

Optional operations

Methods specified as

optional operations

throw a

ReadOnlyBufferException

when invoked on a

read-only

FloatBuffer. The methods

array

and

arrayOffset

throw an

UnsupportedOperationException

if the FloatBuffer is not backed by an

accessible float array

(irrespective of whether the FloatBuffer is read-only).

Since:
1.4

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4