protected static class Pointer.NativeDeallocator extends Pointer.DeallocatorReference implements Pointer.Deallocator
Pointer.Deallocator that calls, during garbage collection, a native function.
Passes as argument the Pointer.address of the Pointer passed to the constructor.| Modifier and Type | Field and Description |
|---|---|
private long |
allocatedAddress |
private long |
deallocatorAddress |
deallocator, head, next, prev| Constructor and Description |
|---|
Pointer.NativeDeallocator(Pointer p,
long deallocatorAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
deallocate() |
private void |
deallocate(long allocatedAddress,
long deallocatorAddress) |
add, clear, removegetenqueue, isEnqueuedprivate long allocatedAddress
private long deallocatorAddress
Pointer.NativeDeallocator(Pointer p, long deallocatorAddress)
public void deallocate()
deallocate in interface Pointer.Deallocatorprivate void deallocate(long allocatedAddress,
long deallocatorAddress)
Copyright © 2014. All Rights Reserved.