public interface OffHeapMemoryAllocator
Modifier and Type | Method and Description |
---|---|
long |
allocate(long memoryLength)
Allocates a new chunk of memory sized to the given length.
|
void |
deallocate(long memoryAddress,
long size)
Deallocates the memory at the given address assuming a given size.
|
long |
getAllocatedAmount() |
long allocate(long memoryLength)
memoryLength
- the size of memory to allocatevoid deallocate(long memoryAddress, long size)
memoryAddress
- the address to deallocate fromsize
- the total sizelong getAllocatedAmount()
Copyright © 2021 JBoss by Red Hat. All rights reserved.