| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | ByteBufferAsCharBufferRB(ByteBuffer bb, int mark, int pos, int lim, int cap, long addr, MemorySegment segment)
|
| Modifier and Type | Method and Description |
|---|---|
| public CharBuffer | asReadOnlyBuffer()
Overrides java. Creates a new, read-only char buffer that shares this buffer's content. |
| pack-priv Object | |
| pack-priv ByteOrder | |
| public CharBuffer | compact()
Overrides java. Compacts this buffer (optional operation). |
| public CharBuffer | duplicate()
Overrides java. Creates a new char buffer that shares this buffer's content. |
| pack-priv AbstractMemorySegmentImpl | heapSegment(Object base, long offset, long length, boolean readOnly, MemorySessionImpl bufferScope)
Overrides java.
|
| public boolean | isDirect()
Overrides java. Tells whether or not this char buffer is direct. |
| public boolean | isReadOnly()
Overrides java. Tells whether or not this buffer is read-only. |
| public ByteOrder | |
| public CharBuffer | put(char x)
Overrides java. Relative put method (optional operation). |
| public CharBuffer | put(int i, char x)
Overrides java. Absolute put method (optional operation). |
| pack-priv int | scaleShifts()
Overrides java. Returns the scale shifts for this Buffer. |
| public CharBuffer | slice()
Overrides java. Creates a new char buffer whose content is a shared subsequence of this buffer's content. |
| public CharBuffer | slice(int index, int length)
Overrides java. Creates a new char buffer whose content is a shared subsequence of this buffer's content. |
| public CharBuffer | subSequence(int start, int end)
Overrides java. Implements java. Creates a new character buffer that represents the specified subsequence of this buffer, relative to the current position. |
| public String |
| ByteBufferAsCharBufferRB | back to summary |
|---|---|
| pack-priv ByteBufferAsCharBufferRB(ByteBuffer bb, MemorySegment segment) | |
| ByteBufferAsCharBufferRB | back to summary |
|---|---|
| pack-priv ByteBufferAsCharBufferRB(ByteBuffer bb, int mark, int pos, int lim, int cap, long addr, MemorySegment segment) | |
| asReadOnlyBuffer | back to summary |
|---|---|
| public CharBuffer asReadOnlyBuffer() Overrides java. Doc from java. Creates a new, read-only char 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 | |
| base | back to summary |
|---|---|
| pack-priv Object base() Overrides java.
| |
| charRegionOrder | back to summary |
|---|---|
| pack-priv ByteOrder charRegionOrder() | |
| compact | back to summary |
|---|---|
| public CharBuffer compact() Overrides java. Doc from java. Compacts this buffer (optional operation). The chars between the buffer's current position and its limit,
if any, are copied to the beginning of the buffer. That is, the
char at index p = The buffer's position is set to the number of chars copied, rather than to zero, so that an invocation of this method can be followed immediately by an invocation of another relative put method. | |
| duplicate | back to summary |
|---|---|
| public CharBuffer duplicate() Overrides java. Doc from java. Creates a new char 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. | |
| heapSegment | back to summary |
|---|---|
| pack-priv AbstractMemorySegmentImpl heapSegment(Object base, long offset, long length, boolean readOnly, MemorySessionImpl bufferScope) Overrides java.
| |
| isDirect | back to summary |
|---|---|
| public boolean isDirect() Overrides java. Doc from java. Tells whether or not this char buffer is direct. | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Overrides java. Doc from java. Tells whether or not this buffer is read-only. | |
| order | back to summary |
|---|---|
| public ByteOrder order() Overrides java. Doc from java. Retrieves this buffer's byte order. The byte order of a char buffer created by allocation or by
wrapping an existing | |
| put | back to summary |
|---|---|
| public CharBuffer put(char x) Overrides java. Doc from java. Relative put method (optional operation). Writes the given char into this buffer at the current position, and then increments the position. | |
| put | back to summary |
|---|---|
| public CharBuffer put(int i, char x) Overrides java. Doc from java. Absolute put method (optional operation). Writes the given char into this buffer at the given index. | |
| scaleShifts | back to summary |
|---|---|
| pack-priv int scaleShifts() Overrides java. Doc from java. Returns the scale shifts for this Buffer. The scale shifts are: ByteBuffer: 0 ShortBuffer, CharBuffer: 1 IntBuffer, FloatBuffer: 2 LongBuffer, DoubleBuffer: 3
| |
| slice | back to summary |
|---|---|
| public CharBuffer slice() Overrides java. Doc from java. Creates a new char 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 chars 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. | |
| slice | back to summary |
|---|---|
| public CharBuffer slice(int index, int length) Overrides java. Doc from java. Creates a new char buffer whose content is a shared subsequence of this buffer's content. The content of the new buffer will start at position The new buffer's position will be zero, its capacity and its limit
will be
| |
| subSequence | back to summary |
|---|---|
| public CharBuffer subSequence(int start, int end) Overrides java. Implements java. Doc from java. Creates a new character buffer that represents the specified subsequence of this buffer, relative to the current position. The new buffer will share this buffer's content; that is, if the
content of this buffer is mutable then modifications to one buffer will
cause the other to be modified. The new buffer's capacity will be that
of this buffer, its position will be
| |
| toString | back to summary |
|---|---|
| public String toString(int start, int end) Overrides java. | |