public abstract class ForeignAllocation extends Object
To use this, subclass this class and implement release0() to free the allocation.
| Modifier | Constructor and Description |
|---|---|
protected |
ForeignAllocation(long size,
long memoryAddress)
Create a new AllocationManager representing an imported buffer.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getSize()
Get the size of this allocation.
|
protected long |
memoryAddress()
Get the address of this allocation.
|
protected abstract void |
release0()
Free this allocation.
|
Copyright © 2024 The Apache Software Foundation. All rights reserved.