| Modifier and Type | Class and Description |
|---|---|
class |
AllocMemory
The AllocMemory class is a subclass of NativeMemory and is used to allocate direct, off-heap
native memory, which is then accessed by the NativeMemory methods.
|
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 |
MemoryRegionR
Read-only version of MemoryRegion
|
class |
NativeMemory
The NativeMemory class implements the Memory interface and is used to access Java byte arrays,
long arrays and ByteBuffers by presenting them as arguments to the constructors of this class.
|
| Modifier and Type | Method and Description |
|---|---|
Memory |
NativeMemory.asReadOnlyMemory() |
Memory |
MemoryRegion.asReadOnlyMemory() |
Memory |
Memory.asReadOnlyMemory()
Returns a read-only version of this memory
|
Memory |
MemoryRequest.request(long capacityBytes)
Request new Memory with the given capacity.
|
Memory |
MemoryRequest.request(Memory origMem,
long copyToBytes,
long capacityBytes)
Request for allocate, copy and clear.
|
| 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.
|
static void |
NativeMemory.copy(Memory source,
long srcOffsetBytes,
Memory destination,
long dstOffsetBytes,
long lengthBytes)
Copies bytes from a source Memory to the destination Memory.
|
static void |
MemoryUtil.copy(Memory source,
long srcOffsetBytes,
Memory destination,
long dstOffsetBytes,
long lengthBytes)
Deprecated.
this method was moved to
NativeMemory.copy(Memory, long, Memory, long, long) |
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 is to be freed.
|
Memory |
MemoryRequest.request(Memory origMem,
long copyToBytes,
long capacityBytes)
Request for allocate, copy and clear.
|
| 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.
|
MemoryRegionR(Memory memory,
long memOffsetBytes,
long capacityBytes,
MemoryRequest memReq) |
Copyright © 2015–2016 Yahoo! Inc.. All rights reserved.