| Modifier and Type | Field and Description |
|---|---|
static long |
HEADER_SIZE |
| Constructor and Description |
|---|
OffHeapMemory()
Create an empty memory
|
OffHeapMemory(long address) |
OffHeapMemory(long address,
long size) |
| Modifier and Type | Method and Description |
|---|---|
long |
address()
data-part address
|
long |
dataSize()
data-part size
|
long |
headerAddress()
Allocated memory address
|
void |
release() |
long |
size()
Allocated memory size
|
MemoryReference |
toRef(java.lang.ref.ReferenceQueue<Memory> queue) |
public OffHeapMemory()
public OffHeapMemory(long address)
public OffHeapMemory(long address,
long size)
public long headerAddress()
MemoryheaderAddress in interface Memorypublic long size()
Memorypublic long address()
Memorypublic long dataSize()
Memorypublic MemoryReference toRef(java.lang.ref.ReferenceQueue<Memory> queue)