Interface BinaryMemoryAllocatorChunk
-
public interface BinaryMemoryAllocatorChunkMemory allocator chunk.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]allocate(int size)Allocate.booleanisAcquired()byte[]reallocate(byte[] data, int size)Reallocate.voidrelease(byte[] data, int maxMsgSize)Shrinks array size if needed.
-
-
-
Method Detail
-
allocate
byte[] allocate(int size)
Allocate.- Parameters:
size- Desired size.- Returns:
- Data.
-
reallocate
byte[] reallocate(byte[] data, int size)Reallocate.- Parameters:
data- Old data.size- Size.- Returns:
- New data.
-
release
void release(byte[] data, int maxMsgSize)Shrinks array size if needed.
-
isAcquired
boolean isAcquired()
- Returns:
Trueif acquired.
-
-