Modifier and Type | Class and Description |
---|---|
class |
DefaultMemoryRequestServer
This example MemoryRequestServer is simple but demonstrates one of many ways to
manage continuous requests for larger memory.
|
Modifier and Type | Field and Description |
---|---|
static MemoryRequestServer |
Resource.defaultMemReqSvr
The default MemoryRequestServer is used if not specified by the user.
|
Modifier and Type | Method and Description |
---|---|
MemoryRequestServer |
Resource.getMemoryRequestServer()
Gets the MemoryRequestServer object, if set, for the below resources to request additional memory.
|
Modifier and Type | Method and Description |
---|---|
static WritableMemory |
WritableMemory.allocate(int capacityBytes,
ByteOrder byteOrder,
MemoryRequestServer memReqSvr)
Creates on-heap WritableMemory with the given capacity and the given byte order.
|
static WritableMemory |
WritableMemory.allocateDirect(long capacityBytes,
ByteOrder byteOrder,
MemoryRequestServer memReqSvr)
Allocates and provides access to capacityBytes directly in off-heap memory.
|
void |
Resource.setMemoryRequestServer(MemoryRequestServer memReqSvr)
Sets the Default MemoryRequestServer
|
static WritableMemory |
WritableMemory.writableWrap(byte[] array,
int offsetBytes,
int lengthBytes,
ByteOrder byteOrder,
MemoryRequestServer memReqSvr)
Wraps the given primitive array for write operations with the given byte order.
|
static WritableBuffer |
WritableBuffer.writableWrap(ByteBuffer byteBuffer,
ByteOrder byteOrder,
MemoryRequestServer memReqSvr)
Provides a view of the given ByteBuffer for write operations.
|
static WritableMemory |
WritableMemory.writableWrap(ByteBuffer byteBuffer,
ByteOrder byteOrder,
MemoryRequestServer memReqSvr)
Provides a view of the given ByteBuffer for write operations.
|
Copyright © 2015–2024. All rights reserved.