public interface PortableMemoryAllocator
| Modifier and Type | Field and Description |
|---|---|
static PortableMemoryAllocator |
DFLT_ALLOC
Default memory allocator.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
allocate(int size)
Allocate memory.
|
long |
allocateDirect(int size)
Allocate memory.
|
byte[] |
reallocate(byte[] data,
int size)
Reallocates memory.
|
long |
reallocateDirect(long addr,
int size)
Reallocate memory.
|
void |
release(byte[] data,
int maxMsgSize)
Release memory.
|
void |
releaseDirect(long addr)
Release memory.
|
static final PortableMemoryAllocator DFLT_ALLOC
byte[] allocate(int size)
size - Size.byte[] reallocate(byte[] data,
int size)
data - Current data chunk.size - New size required.void release(byte[] data,
int maxMsgSize)
data - Data.maxMsgSize - Max message size sent during the time the allocator is used.long allocateDirect(int size)
size - Size.long reallocateDirect(long addr,
int size)
addr - Address.size - Size.void releaseDirect(long addr)
addr - Address.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015