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, remove
get
enqueue, isEnqueued
private long ownerAddress
private long deallocatorAddress
NativeDeallocator(Pointer p, long ownerAddress, long deallocatorAddress)
public void deallocate()
deallocate
in interface Pointer.Deallocator
private void deallocate(long ownerAddress, long deallocatorAddress)
public String toString()
toString
in class Pointer.DeallocatorReference
Copyright © 2016. All rights reserved.