| Package | Description |
|---|---|
| java.nio | |
| org.gwtproject.nio |
| Modifier and Type | Class and Description |
|---|---|
class |
DirectByteBuffer
DirectByteBuffer, DirectReadWriteByteBuffer and DirectReadOnlyHeapByteBuffer compose
the implementation of direct byte buffers.
|
class |
DirectReadWriteByteBuffer
DirectByteBuffer, DirectReadWriteByteBuffer and DirectReadOnlyByteBuffer compose
the implementation of direct byte buffers.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
ByteBuffer.allocate(int capacity)
Creates a byte buffer based on a newly allocated byte array.
|
static ByteBuffer |
ByteBuffer.allocateDirect(int capacity)
Creates a direct byte buffer based on a newly allocated memory block.
|
ByteBuffer |
DirectReadWriteByteBuffer.asReadOnlyBuffer() |
abstract ByteBuffer |
ByteBuffer.asReadOnlyBuffer()
Returns a read-only buffer that shares its content with this buffer.
|
ByteBuffer |
DirectReadWriteByteBuffer.compact() |
abstract ByteBuffer |
ByteBuffer.compact()
Compacts this byte buffer.
|
ByteBuffer |
DirectReadWriteByteBuffer.duplicate() |
abstract ByteBuffer |
ByteBuffer.duplicate()
Returns a duplicated buffer that shares its content with this buffer.
|
ByteBuffer |
ByteBuffer.get(byte[] dest)
Reads bytes from the current position into the specified byte array and
increases the position by the number of bytes read.
|
ByteBuffer |
DirectByteBuffer.get(byte[] dest,
int off,
int len) |
ByteBuffer |
ByteBuffer.get(byte[] dest,
int off,
int len)
Reads bytes from the current position into the specified byte array,
starting at the specified offset, and increases the position by the
number of bytes read.
|
ByteBuffer |
ByteBufferWrapper.getByteBuffer() |
ByteBuffer |
ByteBuffer.order(ByteOrder byteOrder)
Sets the byte order of this buffer.
|
ByteBuffer |
DirectReadWriteByteBuffer.put(byte b) |
abstract ByteBuffer |
ByteBuffer.put(byte b)
Writes the given byte to the current position and increases the position
by 1.
|
ByteBuffer |
ByteBuffer.put(byte[] src)
Writes bytes in the given byte array to the current position and
increases the position by the number of bytes written.
|
ByteBuffer |
DirectReadWriteByteBuffer.put(byte[] src,
int off,
int len) |
ByteBuffer |
ByteBuffer.put(byte[] src,
int off,
int len)
Writes bytes in the given byte array, starting from the specified offset,
to the current position and increases the position by the number of bytes
written.
|
ByteBuffer |
ByteBuffer.put(ByteBuffer src)
Writes all the remaining bytes of the
src byte buffer to this
buffer's current position, and increases both buffers' position by the
number of bytes copied. |
ByteBuffer |
DirectReadWriteByteBuffer.put(int index,
byte b) |
abstract ByteBuffer |
ByteBuffer.put(int index,
byte b)
Write a byte to the specified index of this buffer without changing the
position.
|
abstract ByteBuffer |
ByteBuffer.putChar(char value)
Writes the given char to the current position and increases the position
by 2.
|
abstract ByteBuffer |
ByteBuffer.putChar(int index,
char value)
Writes the given char to the specified index of this buffer.
|
ByteBuffer |
DirectReadWriteByteBuffer.putDouble(double value) |
abstract ByteBuffer |
ByteBuffer.putDouble(double value)
Writes the given double to the current position and increases the position
by 8.
|
ByteBuffer |
DirectReadWriteByteBuffer.putDouble(int index,
double value) |
abstract ByteBuffer |
ByteBuffer.putDouble(int index,
double value)
Writes the given double to the specified index of this buffer.
|
ByteBuffer |
DirectReadWriteByteBuffer.putFloat(float value) |
abstract ByteBuffer |
ByteBuffer.putFloat(float value)
Writes the given float to the current position and increases the position
by 4.
|
ByteBuffer |
DirectReadWriteByteBuffer.putFloat(int index,
float value) |
abstract ByteBuffer |
ByteBuffer.putFloat(int index,
float value)
Writes the given float to the specified index of this buffer.
|
ByteBuffer |
DirectReadWriteByteBuffer.putInt(int value) |
abstract ByteBuffer |
ByteBuffer.putInt(int value)
Writes the given int to the current position and increases the position by
4.
|
ByteBuffer |
DirectReadWriteByteBuffer.putInt(int index,
int value) |
abstract ByteBuffer |
ByteBuffer.putInt(int index,
int value)
Writes the given int to the specified index of this buffer.
|
ByteBuffer |
DirectReadWriteByteBuffer.putLong(int index,
long value) |
abstract ByteBuffer |
ByteBuffer.putLong(int index,
long value)
Writes the given long to the specified index of this buffer.
|
ByteBuffer |
DirectReadWriteByteBuffer.putLong(long value) |
abstract ByteBuffer |
ByteBuffer.putLong(long value)
Writes the given long to the current position and increases the position
by 8.
|
ByteBuffer |
DirectReadWriteByteBuffer.putShort(int index,
short value) |
abstract ByteBuffer |
ByteBuffer.putShort(int index,
short value)
Writes the given short to the specified index of this buffer.
|
ByteBuffer |
DirectReadWriteByteBuffer.putShort(short value) |
abstract ByteBuffer |
ByteBuffer.putShort(short value)
Writes the given short to the current position and increases the position
by 2.
|
ByteBuffer |
DirectReadWriteByteBuffer.slice() |
abstract ByteBuffer |
ByteBuffer.slice()
Returns a sliced buffer that shares its content with this buffer.
|
ByteBuffer |
StringToByteBuffer.stringToByteBuffer(String s) |
ByteBuffer |
ByteBuffer.stringToByteBuffer(String s) |
static ByteBuffer |
ByteBuffer.wrap(byte[] array)
Creates a new byte buffer by wrapping the given byte array.
|
static ByteBuffer |
ByteBuffer.wrap(byte[] array,
int start,
int len)
Creates a new byte buffer by wrapping the given byte array.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ByteBuffer.compareTo(ByteBuffer otherBuffer)
Compares the remaining bytes of this buffer to another byte buffer's
remaining bytes.
|
ByteBuffer |
ByteBuffer.put(ByteBuffer src)
Writes all the remaining bytes of the
src byte buffer to this
buffer's current position, and increases both buffers' position by the
number of bytes copied. |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
TypedArrayHelper.stringToByteBuffer(String s) |
static ByteBuffer |
TypedArrayHelper.wrap(elemental2.core.ArrayBuffer ab) |
| Modifier and Type | Method and Description |
|---|---|
static elemental2.core.ArrayBufferView |
TypedArrayHelper.unwrap(ByteBuffer bb) |
Copyright © 2020 Dmitrii Tikhomirov. All rights reserved.