protected static class Pointer.NativeDeallocator extends Pointer.DeallocatorReference implements Pointer.Deallocator
Pointer.Deallocator that calls, during garbage collection, a native function.
Passes as single argument the ownerAddress passed to the constructor.| Modifier and Type | Field and Description |
|---|---|
private long |
deallocatorAddress |
private long |
ownerAddress |
bytes, deallocator, head, next, prev, totalBytes| Constructor and Description |
|---|
NativeDeallocator(Pointer p,
long ownerAddress,
long deallocatorAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
deallocate() |
private void |
deallocate(long ownerAddress,
long deallocatorAddress) |
String |
toString() |
add, clear, removegetenqueue, isEnqueuedprivate long ownerAddress
private long deallocatorAddress
NativeDeallocator(Pointer p, long ownerAddress, long deallocatorAddress)
public void deallocate()
deallocate in interface Pointer.Deallocatorprivate void deallocate(long ownerAddress,
long deallocatorAddress)
public String toString()
toString in class Pointer.DeallocatorReferenceCopyright © 2018. All rights reserved.