public class PortableSimpleMemoryAllocator extends Object implements PortableMemoryAllocator
| Modifier and Type | Field and Description |
|---|---|
protected static long |
BYTE_ARR_OFF
Array offset: byte.
|
DFLT_ALLOC| Constructor and Description |
|---|
PortableSimpleMemoryAllocator() |
| 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.
|
public byte[] allocate(int size)
allocate in interface PortableMemoryAllocatorsize - Size.public byte[] reallocate(byte[] data,
int size)
reallocate in interface PortableMemoryAllocatordata - Current data chunk.size - New size required.public void release(byte[] data,
int maxMsgSize)
release in interface PortableMemoryAllocatordata - Data.maxMsgSize - Max message size sent during the time the allocator is used.public long allocateDirect(int size)
allocateDirect in interface PortableMemoryAllocatorsize - Size.public long reallocateDirect(long addr,
int size)
reallocateDirect in interface PortableMemoryAllocatoraddr - Address.size - Size.public void releaseDirect(long addr)
releaseDirect in interface PortableMemoryAllocatoraddr - Address.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015