| Modifier and Type | Class and Description |
|---|---|
class |
WritableBuffer
Provides read and write, positional primitive and primitive array access to any of the four
resources mentioned at the package level.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Buffer |
Memory.asBuffer()
Returns a new Buffer view of this object.
|
abstract Buffer |
Memory.asBuffer(ByteOrder byteOrder)
Returns a new Buffer view of this object, with the given
byte order.
|
abstract Buffer |
Buffer.duplicate()
Returns a read-only duplicate view of this Buffer with the same but independent values of
start, position and end.
|
abstract 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.
|
abstract Buffer |
Buffer.region()
A region is a read-only view of this object.
|
abstract Buffer |
Buffer.region(long offsetBytes,
long capacityBytes,
ByteOrder byteOrder)
A region is a read-only view of this object.
|
static Buffer |
Buffer.wrap(ByteBuffer byteBuf)
Accesses the given ByteBuffer for read-only operations.
|
static Buffer |
Buffer.wrap(ByteBuffer byteBuf,
ByteOrder byteOrder)
Accesses the given ByteBuffer for read-only operations.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
Buffer.compareTo(long thisOffsetBytes,
long thisLengthBytes,
Buffer that,
long thatOffsetBytes,
long thatLengthBytes)
Compares the bytes of this Buffer to that Buffer.
|
Copyright © 2015–2018 Yahoo! Inc.. All rights reserved.