APIdia Launch Partner
Top Constructors Methods
java.nio

pack-priv final Class DirectIntBufferRU

extends DirectIntBufferU
implements DirectBuffer
Class Inheritance
All Implemented Interfaces
sun.nio.ch.DirectBuffer
Imports
java.io.FileDescriptor, java.lang.foreign.MemorySegment, java.lang.ref.Reference, java.nio.BufferCleaner, java.util.Objects, jdk.internal.foreign.AbstractMemorySegmentImpl, .MemorySessionImpl, .SegmentFactories, jdk.internal.vm.annotation.ForceInline, jdk.internal.misc.ScopedMemoryAccess.ScopedAccessError, .VM, sun.nio.Cleaner, sun.nio.ch.DirectBuffer

Constructor Summary

AccessConstructor and Description
pack-priv
DirectIntBufferRU(DirectBuffer db, int mark, int pos, int lim, int cap, int off, MemorySegment segment)

Method Summary

Modifier and TypeMethod and Description
public IntBuffer
asReadOnlyBuffer()

Overrides java.nio.DirectIntBufferU.asReadOnlyBuffer.

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

pack-priv Object
public IntBuffer
compact()

Overrides java.nio.DirectIntBufferU.compact.

Compacts this buffer  (optional operation).

public IntBuffer
duplicate()

Overrides java.nio.DirectIntBufferU.duplicate.

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

public boolean
isDirect()

Overrides java.nio.DirectIntBufferU.isDirect.

Tells whether or not this int buffer is direct.

public boolean
isReadOnly()

Overrides java.nio.DirectIntBufferU.isReadOnly.

Tells whether or not this buffer is read-only.

public ByteOrder
order()

Overrides java.nio.DirectIntBufferU.order.

Retrieves this buffer's byte order.

public IntBuffer
put(int x)

Overrides java.nio.DirectIntBufferU.put.

Relative put method  (optional operation).

public IntBuffer
put(int i, int x)

Overrides java.nio.DirectIntBufferU.put.

Absolute put method  (optional operation).

public IntBuffer
slice()

Overrides java.nio.DirectIntBufferU.slice.

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

public IntBuffer
slice(int index, int length)

Overrides java.nio.DirectIntBufferU.slice.

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

Inherited from java.nio.DirectIntBufferU:
addressattachmentcleanergetget

Constructor Detail

DirectIntBufferRUback to summary
pack-priv DirectIntBufferRU(DirectBuffer db, int mark, int pos, int lim, int cap, int off, MemorySegment segment)

Method Detail

asReadOnlyBufferback to summary
public IntBuffer asReadOnlyBuffer()

Overrides java.nio.DirectIntBufferU.asReadOnlyBuffer.

Doc from java.nio.IntBuffer.asReadOnlyBuffer.

Creates a new, read-only int 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.DirectIntBufferU.base.

Annotations
@Override
compactback to summary
public IntBuffer compact()

Overrides java.nio.DirectIntBufferU.compact.

Doc from java.nio.IntBuffer.compact.

Compacts this buffer  (optional operation).

The ints between the buffer's current position and its limit, if any, are copied to the beginning of the buffer. That is, the int at index p = position() is copied to index zero, the int at index p + 1 is copied to index one, and so forth until the int 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 ints 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 IntBuffer duplicate()

Overrides java.nio.DirectIntBufferU.duplicate.

Doc from java.nio.IntBuffer.duplicate.

Creates a new int 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.

isDirectback to summary
public boolean isDirect()

Overrides java.nio.DirectIntBufferU.isDirect.

Doc from java.nio.IntBuffer.isDirect.

Tells whether or not this int buffer is direct.

isReadOnlyback to summary
public boolean isReadOnly()

Overrides java.nio.DirectIntBufferU.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.DirectIntBufferU.order.

Doc from java.nio.IntBuffer.order.

Retrieves this buffer's byte order.

The byte order of an int buffer created by allocation or by wrapping an existing int array is the native order of the underlying hardware. The byte order of an int 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 IntBuffer put(int x)

Overrides java.nio.DirectIntBufferU.put.

Doc from java.nio.IntBuffer.put.

Relative put method  (optional operation).

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

putback to summary
public IntBuffer put(int i, int x)

Overrides java.nio.DirectIntBufferU.put.

Doc from java.nio.IntBuffer.put.

Absolute put method  (optional operation).

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

sliceback to summary
public IntBuffer slice()

Overrides java.nio.DirectIntBufferU.slice.

Doc from java.nio.IntBuffer.slice.

Creates a new int 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 ints 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 IntBuffer slice(int index, int length)

Overrides java.nio.DirectIntBufferU.slice.

Doc from java.nio.IntBuffer.slice.

Creates a new int 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