APIdia Launch Partner
Top Fields Constructors Methods
java.nio

pack-priv sealed Class DirectLongBufferS

extends LongBuffer
implements DirectBuffer
permits DirectLongBufferRS
Class Inheritance
All Implemented Interfaces
sun.nio.ch.DirectBuffer
Known Direct Subclasses
java.nio.DirectLongBufferRS
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

Field Summary

Modifier and TypeField and Description
private final Object
Inherited from java.nio.LongBuffer:
hbisReadOnlyoffset

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public long
public LongBuffer
asReadOnlyBuffer()

Implements abstract java.nio.LongBuffer.asReadOnlyBuffer.

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

public Object
pack-priv Object
public Cleaner
public LongBuffer
compact()

Implements abstract java.nio.LongBuffer.compact.

Compacts this buffer  (optional operation).

public LongBuffer
duplicate()

Implements abstract java.nio.LongBuffer.duplicate.

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

public long
get()

Implements abstract java.nio.LongBuffer.get.

Relative get method.

public long
get(int i)

Implements abstract java.nio.LongBuffer.get.

Absolute get method.

public boolean
isDirect()

Implements abstract java.nio.LongBuffer.isDirect.

Tells whether or not this long buffer is direct.

public boolean
isReadOnly()

Implements abstract java.nio.Buffer.isReadOnly.

Tells whether or not this buffer is read-only.

private long
ix(int i)

public ByteOrder
order()

Implements abstract java.nio.LongBuffer.order.

Retrieves this buffer's byte order.

public LongBuffer
put(long x)

Implements abstract java.nio.LongBuffer.put.

Relative put method  (optional operation).

public LongBuffer
put(int i, long x)

Implements abstract java.nio.LongBuffer.put.

Absolute put method  (optional operation).

public LongBuffer
slice()

Implements abstract java.nio.LongBuffer.slice.

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

public LongBuffer
slice(int index, int length)

Implements abstract java.nio.LongBuffer.slice.

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

Inherited from java.nio.LongBuffer:
allocatearrayarrayOffsetclearcompareToequalsflipgetgetgetgetgetArrayhasArrayhashCodeheapSegmentlimitmarkmismatchpositionputputputputputputputArrayputBufferresetrewindscaleShiftstoStringwrapwrap

Field Detail

attback to summary
private final Object att

Constructor Detail

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

Method Detail

addressback to summary
public long address()

Implements sun.nio.ch.DirectBuffer.address.

asReadOnlyBufferback to summary
public LongBuffer asReadOnlyBuffer()

Implements abstract java.nio.LongBuffer.asReadOnlyBuffer.

Doc from java.nio.LongBuffer.asReadOnlyBuffer.

Creates a new, read-only long 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.

attachmentback to summary
public Object attachment()

Implements sun.nio.ch.DirectBuffer.attachment.

baseback to summary
pack-priv Object base()

Overrides java.nio.LongBuffer.base.

Annotations
@Override
cleanerback to summary
public Cleaner cleaner()

Implements sun.nio.ch.DirectBuffer.cleaner.

compactback to summary
public LongBuffer compact()

Implements abstract java.nio.LongBuffer.compact.

Doc from java.nio.LongBuffer.compact.

Compacts this buffer  (optional operation).

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

Implements abstract java.nio.LongBuffer.duplicate.

Doc from java.nio.LongBuffer.duplicate.

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

getback to summary
public long get()

Implements abstract java.nio.LongBuffer.get.

Doc from java.nio.LongBuffer.get.

Relative get method. Reads the long at this buffer's current position, and then increments the position.

getback to summary
public long get(int i)

Implements abstract java.nio.LongBuffer.get.

Doc from java.nio.LongBuffer.get.

Absolute get method. Reads the long at the given index.

isDirectback to summary
public boolean isDirect()

Implements abstract java.nio.LongBuffer.isDirect.

Doc from java.nio.LongBuffer.isDirect.

Tells whether or not this long buffer is direct.

isReadOnlyback to summary
public boolean isReadOnly()

Implements abstract java.nio.Buffer.isReadOnly.

Doc from java.nio.Buffer.isReadOnly.

Tells whether or not this buffer is read-only.

ixback to summary
private long ix(int i)
orderback to summary
public ByteOrder order()

Implements abstract java.nio.LongBuffer.order.

Doc from java.nio.LongBuffer.order.

Retrieves this buffer's byte order.

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

Implements abstract java.nio.LongBuffer.put.

Doc from java.nio.LongBuffer.put.

Relative put method  (optional operation).

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

putback to summary
public LongBuffer put(int i, long x)

Implements abstract java.nio.LongBuffer.put.

Doc from java.nio.LongBuffer.put.

Absolute put method  (optional operation).

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

sliceback to summary
public LongBuffer slice()

Implements abstract java.nio.LongBuffer.slice.

Doc from java.nio.LongBuffer.slice.

Creates a new long 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 longs 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 LongBuffer slice(int index, int length)

Implements abstract java.nio.LongBuffer.slice.

Doc from java.nio.LongBuffer.slice.

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