| Modifier and Type | Class and Description |
|---|---|
class |
AllocMemory
The AllocMemory class is a subclass of NativeMemory1.
|
class |
MemoryMappedFile
MemoryMappedFile class extends NativeMemory and is used to memory map files (including those >
2GB) off heap.
|
class |
MemoryRegion
The MemoryRegion class implements the Memory interface and provides a means of
hierarchically partitioning a large block of native memory into
smaller regions of memory, each with their own capacity and offsets.
|
class |
NativeMemory
The NativeMemory class implements the Memory interface and is used to access Java primitive
arrays, and ByteBuffers by presenting them as arguments to the constructors of this class.
|
| Modifier and Type | Method and Description |
|---|---|
Memory |
NativeMemory.asReadOnlyMemory() |
Memory |
Memory.asReadOnlyMemory()
Returns a read-only version of this memory
|
static Memory |
MemoryUtil.memoryRequestHandler(Memory origMem,
long newCapacityBytes,
boolean copy)
Exception handler for requesting a new Memory allocation of the given newCapacityBytes,
using the MemoryRequest callback interface.
|
Memory |
MemoryRequest.request(long capacityBytes)
Request new Memory with the given capacity.
|
Memory |
MemoryRequest.request(Memory origMem,
long copyToBytes,
long capacityBytes)
Request for allocate and copy.
|
static Memory |
NativeMemory.wrap(ByteBuffer byteBuffer)
Provides access to the backing store of the given ByteBuffer using Memory interface.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
MemoryUtil.binarySearchLongs(Memory mem,
int fromLongIndex,
int toLongIndex,
long key)
Searches a range of the specified array of longs for the specified value using the binary
search algorithm.
|
void |
NativeMemory.copy(long srcOffsetBytes,
Memory destination,
long dstOffsetBytes,
long lengthBytes) |
void |
MemoryRegion.copy(long srcOffsetBytes,
Memory destination,
long dstOffsetBytes,
long lengthBytes) |
void |
Memory.copy(long srcOffsetBytes,
Memory destination,
long dstOffsetBytes,
long lengthBytes)
Copies bytes from a source range of this Memory to a destination range of the given Memory
using the same low-level system copy function as found in
System.arraycopy(Object, int, Object, int, int). |
static void |
NativeMemory.copy(Memory source,
long srcOffsetBytes,
Memory destination,
long dstOffsetBytes,
long lengthBytes)
Deprecated.
Use
copy(long, Memory, long, long) instead. |
static void |
MemoryUtil.copy(Memory source,
long srcOffsetBytes,
Memory destination,
long dstOffsetBytes,
long lengthBytes)
Deprecated.
Use
copy(long, Memory, long, long) instead. |
void |
MemoryRequest.free(Memory mem)
The given Memory with its capacity is to be freed.
|
void |
MemoryRequest.free(Memory memToFree,
Memory newMem)
The given memToFree with its capacity may be freed by the implementation.
|
static Memory |
MemoryUtil.memoryRequestHandler(Memory origMem,
long newCapacityBytes,
boolean copy)
Exception handler for requesting a new Memory allocation of the given newCapacityBytes,
using the MemoryRequest callback interface.
|
Memory |
MemoryRequest.request(Memory origMem,
long copyToBytes,
long capacityBytes)
Request for allocate and copy.
|
| Constructor and Description |
|---|
MemoryRegion(Memory memory,
long memOffsetBytes,
long capacityBytes)
Defines a region of the given parent Memory by defining an offset and capacity that are
within the boundaries of the parent.
|
MemoryRegion(Memory memory,
long memOffsetBytes,
long capacityBytes,
MemoryRequest memReq)
Defines a region of the given parent Memory by defining an offset and capacity that are
within the boundaries of the parent.
|
Copyright © 2015–2017 Yahoo! Inc.. All rights reserved.