APIdia Launch Partner
Top Fields Constructors Methods
java.nio

pack-priv final Class ByteBufferAsFloatBufferRB

extends ByteBufferAsFloatBufferB
Class Inheritance
Imports
java.lang.foreign.MemorySegment, jdk.internal.foreign.AbstractMemorySegmentImpl, .MemorySessionImpl, .SegmentFactories, jdk.internal.vm.annotation.ForceInline, java.util.Objects, jdk.internal.misc.Unsafe

Field Summary

Inherited from java.nio.ByteBufferAsFloatBufferB:
bb

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
ByteBufferAsFloatBufferRB(ByteBuffer bb, int mark, int pos, int lim, int cap, long addr, MemorySegment segment)

Method Summary

Modifier and TypeMethod and Description
public FloatBuffer
asReadOnlyBuffer()

Overrides java.nio.ByteBufferAsFloatBufferB.asReadOnlyBuffer.

Creates a new, read-only float buffer that shares this buffer's content.

pack-priv Object
public FloatBuffer
compact()

Overrides java.nio.ByteBufferAsFloatBufferB.compact.

Compacts this buffer  (optional operation).

public FloatBuffer
duplicate()

Overrides java.nio.ByteBufferAsFloatBufferB.duplicate.

Creates a new float buffer that shares this buffer's content.

pack-priv AbstractMemorySegmentImpl
heapSegment(Object base, long offset, long length, boolean readOnly, MemorySessionImpl bufferScope)

Overrides java.nio.ByteBufferAsFloatBufferB.heapSegment.

public boolean
isDirect()

Overrides java.nio.ByteBufferAsFloatBufferB.isDirect.

Tells whether or not this float buffer is direct.

public boolean
isReadOnly()

Overrides java.nio.ByteBufferAsFloatBufferB.isReadOnly.

Tells whether or not this buffer is read-only.

public ByteOrder
order()

Overrides java.nio.ByteBufferAsFloatBufferB.order.

Retrieves this buffer's byte order.

public FloatBuffer
put(float x)

Overrides java.nio.ByteBufferAsFloatBufferB.put.

Relative put method  (optional operation).

public FloatBuffer
put(int i, float x)

Overrides java.nio.ByteBufferAsFloatBufferB.put.

Absolute put method  (optional operation).

pack-priv int
scaleShifts()

Overrides java.nio.ByteBufferAsFloatBufferB.scaleShifts.

Returns the scale shifts for this Buffer.

public FloatBuffer
slice()

Overrides java.nio.ByteBufferAsFloatBufferB.slice.

Creates a new float buffer whose content is a shared subsequence of this buffer's content.

public FloatBuffer
slice(int index, int length)

Overrides java.nio.ByteBufferAsFloatBufferB.slice.

Creates a new float buffer whose content is a shared subsequence of this buffer's content.

Inherited from java.nio.ByteBufferAsFloatBufferB:
byteOffsetgetget

Constructor Detail

ByteBufferAsFloatBufferRBback to summary
pack-priv ByteBufferAsFloatBufferRB(ByteBuffer bb, MemorySegment segment)
ByteBufferAsFloatBufferRBback to summary
pack-priv ByteBufferAsFloatBufferRB(ByteBuffer bb, int mark, int pos, int lim, int cap, long addr, MemorySegment segment)

Method Detail

asReadOnlyBufferback to summary
public FloatBuffer asReadOnlyBuffer()

Overrides java.nio.ByteBufferAsFloatBufferB.asReadOnlyBuffer.

Doc from java.nio.FloatBuffer.asReadOnlyBuffer.

Creates a new, read-only float buffer that shares this buffer's content.

The content of the new buffer will be that of this buffer. Changes to this buffer's content will be visible in the new buffer; the new buffer itself, however, will be read-only and will not allow the shared content to be modified. The two buffers' position, limit, and mark values will be independent.

The new buffer's capacity, limit, position, mark values, and byte order will be identical to those of this buffer.

If this buffer is itself read-only then this method behaves in exactly the same way as the duplicate method.

baseback to summary
pack-priv Object base()

Overrides java.nio.ByteBufferAsFloatBufferB.base.

Annotations
@Override
compactback to summary
public FloatBuffer compact()

Overrides java.nio.ByteBufferAsFloatBufferB.compact.

Doc from java.nio.FloatBuffer.compact.

Compacts this buffer  (optional operation).

The floats between the buffer's current position and its limit, if any, are copied to the beginning of the buffer. That is, the float at index p = position() is copied to index zero, the float at index p + 1 is copied to index one, and so forth until the float at index limit() - 1 is copied to index n = limit() - 1 - p. The buffer's position is then set to n+1 and its limit is set to its capacity. The mark, if defined, is discarded.

The buffer's position is set to the number of floats copied, rather than to zero, so that an invocation of this method can be followed immediately by an invocation of another relative put method.

duplicateback to summary
public FloatBuffer duplicate()

Overrides java.nio.ByteBufferAsFloatBufferB.duplicate.

Doc from java.nio.FloatBuffer.duplicate.

Creates a new float buffer that shares this buffer's content.

The content of the new buffer will be that of this buffer. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.

The new buffer's capacity, limit, position, mark values, and byte order will be identical to those of this buffer. The new buffer will be direct if, and only if, this buffer is direct, and it will be read-only if, and only if, this buffer is read-only.

heapSegmentback to summary
pack-priv AbstractMemorySegmentImpl heapSegment(Object base, long offset, long length, boolean readOnly, MemorySessionImpl bufferScope)

Overrides java.nio.ByteBufferAsFloatBufferB.heapSegment.

Annotations
@ForceInline
@Override
isDirectback to summary
public boolean isDirect()

Overrides java.nio.ByteBufferAsFloatBufferB.isDirect.

Doc from java.nio.FloatBuffer.isDirect.

Tells whether or not this float buffer is direct.

isReadOnlyback to summary
public boolean isReadOnly()

Overrides java.nio.ByteBufferAsFloatBufferB.isReadOnly.

Doc from java.nio.Buffer.isReadOnly.

Tells whether or not this buffer is read-only.

orderback to summary
public ByteOrder order()

Overrides java.nio.ByteBufferAsFloatBufferB.order.

Doc from java.nio.FloatBuffer.order.

Retrieves this buffer's byte order.

The byte order of a float buffer created by allocation or by wrapping an existing float array is the native order of the underlying hardware. The byte order of a float buffer created as a view of a byte buffer is that of the byte buffer at the moment that the view is created.

putback to summary
public FloatBuffer put(float x)

Overrides java.nio.ByteBufferAsFloatBufferB.put.

Doc from java.nio.FloatBuffer.put.

Relative put method  (optional operation).

Writes the given float into this buffer at the current position, and then increments the position.

putback to summary
public FloatBuffer put(int i, float x)

Overrides java.nio.ByteBufferAsFloatBufferB.put.

Doc from java.nio.FloatBuffer.put.

Absolute put method  (optional operation).

Writes the given float into this buffer at the given index.

scaleShiftsback to summary
pack-priv int scaleShifts()

Overrides java.nio.ByteBufferAsFloatBufferB.scaleShifts.

Doc from java.nio.Buffer.scaleShifts.

Returns the scale shifts for this Buffer.

The scale shifts are: ByteBuffer: 0 ShortBuffer, CharBuffer: 1 IntBuffer, FloatBuffer: 2 LongBuffer, DoubleBuffer: 3

Annotations
@ForceInline
@Override
sliceback to summary
public FloatBuffer slice()

Overrides java.nio.ByteBufferAsFloatBufferB.slice.

Doc from java.nio.FloatBuffer.slice.

Creates a new float buffer whose content is a shared subsequence of this buffer's content.

The content of the new buffer will start at this buffer's current position. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.

The new buffer's position will be zero, its capacity and its limit will be the number of floats remaining in this buffer, its mark will be undefined, and its byte order will be identical to that of this buffer. The new buffer will be direct if, and only if, this buffer is direct, and it will be read-only if, and only if, this buffer is read-only.

sliceback to summary
public FloatBuffer slice(int index, int length)

Overrides java.nio.ByteBufferAsFloatBufferB.slice.

Doc from java.nio.FloatBuffer.slice.

Creates a new float buffer whose content is a shared subsequence of this buffer's content.

The content of the new buffer will start at position index in this buffer, and will contain length elements. Changes to this buffer's content will be visible in the new buffer, and vice versa; the two buffers' position, limit, and mark values will be independent.

The new buffer's position will be zero, its capacity and its limit will be length, its mark will be undefined, and its byte order will be identical to that of this buffer. The new buffer will be direct if, and only if, this buffer is direct, and it will be read-only if, and only if, this buffer is read-only.

Annotations
@Override