public interface MemoryAllocator
| Modifier and Type | Method and Description |
|---|---|
Memory |
allocate(long size)
Allocate a memory of the specified byte length.
|
long |
allocatedSize()
Get the total amount of allocated memories
|
void |
register(Memory m)
Register a memory
|
void |
release(Memory m)
Release a memory
|
void |
release(MemoryReference ref)
Release a memory, referenced by ref
|
Memory allocate(long size)
size - byte length of the memorylong allocatedSize()
void register(Memory m)
m - void release(Memory m)
void release(MemoryReference ref)