public class PortableMemoryAllocatorChunk extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static long |
BYTE_ARR_OFF
Array offset: byte.
|
protected static sun.misc.Unsafe |
UNSAFE
Unsafe instance.
|
| Constructor and Description |
|---|
PortableMemoryAllocatorChunk() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
allocate(int size)
Allocate.
|
boolean |
isAcquired() |
byte[] |
reallocate(byte[] data,
int size)
Reallocate.
|
void |
release(byte[] data,
int maxMsgSize)
Shrinks array size if needed.
|
protected static final sun.misc.Unsafe UNSAFE
protected static final long BYTE_ARR_OFF
public byte[] allocate(int size)
size - Desired size.public byte[] reallocate(byte[] data,
int size)
data - Old data.size - Size.public void release(byte[] data,
int maxMsgSize)
public boolean isAcquired()
True if acquired.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0-b1 Release Date : December 1 2015