| Modifier and Type | Class and Description |
|---|---|
class |
WritableMemory
Provides read and write primitive and primitive array access to any of the four resources
mentioned at the package level.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Memory |
Buffer.asMemory()
Convert this Buffer to a Memory.
|
Memory |
Handle.get()
Gets a Memory
|
Memory |
MapHandle.get() |
abstract Memory |
Memory.region(long offsetBytes,
long capacityBytes)
A region is a read-only view of this object.
|
abstract Memory |
Memory.region(long offsetBytes,
long capacityBytes,
ByteOrder byteOrder)
A region is a read-only view of this object.
|
static Memory |
Memory.wrap(boolean[] arr)
Wraps the given primitive array for read operations assuming native byte order.
|
static Memory |
Memory.wrap(byte[] arr)
Wraps the given primitive array for read operations assuming native byte order.
|
static Memory |
Memory.wrap(byte[] arr,
ByteOrder byteOrder)
Wraps the given primitive array for read operations with the given byte order.
|
static Memory |
Memory.wrap(byte[] arr,
int offsetBytes,
int lengthBytes,
ByteOrder byteOrder)
Wraps the given primitive array for read operations with the given byte order.
|
static Memory |
Memory.wrap(ByteBuffer byteBuf)
Accesses the given ByteBuffer for read-only operations.
|
static Memory |
Memory.wrap(ByteBuffer byteBuf,
ByteOrder byteOrder)
Accesses the given ByteBuffer for read-only operations.
|
static Memory |
Memory.wrap(char[] arr)
Wraps the given primitive array for read operations assuming native byte order.
|
static Memory |
Memory.wrap(double[] arr)
Wraps the given primitive array for read operations assuming native byte order.
|
static Memory |
Memory.wrap(float[] arr)
Wraps the given primitive array for read operations assuming native byte order.
|
static Memory |
Memory.wrap(int[] arr)
Wraps the given primitive array for read operations assuming native byte order.
|
static Memory |
Memory.wrap(long[] arr)
Wraps the given primitive array for read operations assuming native byte order.
|
static Memory |
Memory.wrap(short[] arr)
Wraps the given primitive array for read operations assuming native byte order.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
Util.binarySearchLongs(Memory mem,
long fromLongIndex,
long toLongIndex,
long key)
Searches a range of the specified array of longs for the specified value using the binary
search algorithm.
|
abstract int |
Memory.compareTo(long thisOffsetBytes,
long thisLengthBytes,
Memory that,
long thatOffsetBytes,
long thatLengthBytes)
Compares the bytes of this Memory to that Memory.
|
Copyright © 2015–2018 Yahoo! Inc.. All rights reserved.