Modifier and Type | Interface and Description |
---|---|
interface |
WritableBuffer
Defines the writable API for relative positional access to a resource
|
Modifier and Type | Method and Description |
---|---|
default Buffer |
Memory.asBuffer()
Returns a new Buffer view of this object.
|
Buffer |
Memory.asBuffer(ByteOrder byteOrder)
Returns a new Buffer view of this object, with the given
byte order.
|
default Buffer |
Buffer.duplicate()
Returns a read-only duplicate view of this Buffer with the same byte order,
but independent values of
start, position and end.
|
Buffer |
Buffer.duplicate(ByteOrder byteOrder)
Returns a read-only duplicate view of this Buffer with the same but independent values of
start, position and end, but with the specified byteOrder.
|
default Buffer |
Buffer.region()
A region is a read-only view of this object from position to end
and with the same byte order.
|
Buffer |
Buffer.region(long offsetBytes,
long capacityBytes,
ByteOrder byteOrder)
A region is a read-only view of this object from offsetBytes and with a length of
capacityBytes and with the given byte order.
|
static Buffer |
Buffer.wrap(ByteBuffer byteBuffer)
Provides a view of the given ByteBuffer for read-only operations.
|
static Buffer |
Buffer.wrap(ByteBuffer byteBuffer,
ByteOrder byteOrder)
Provides a view of the given ByteBuffer for read-only operations.
|
Modifier and Type | Method and Description |
---|---|
int |
Buffer.compareTo(long thisOffsetBytes,
long thisLengthBytes,
Buffer that,
long thatOffsetBytes,
long thatLengthBytes)
Compares the bytes of this Buffer to that Buffer.
|
Copyright © 2015–2024. All rights reserved.