protected static class Pointer.NativeDeallocator extends Pointer.DeallocatorReference
Pointer.Deallocator that calls, during garbage collection, a native function.
Passes as arguments the ownerAddress and deallocatorAddress given to the constructor.| Modifier and Type | Field and Description |
|---|---|
private long |
deallocatorAddress |
private long |
ownerAddress |
bytes, count, deallocator, head, next, prev, totalBytes, totalCount| 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) |
long |
deallocatorAddress() |
long |
ownerAddress() |
String |
toString() |
add, clear, count, release, remove, retaingetclone, enqueue, isEnqueuedprivate long ownerAddress
private long deallocatorAddress
NativeDeallocator(Pointer p, long ownerAddress, long deallocatorAddress)
public long ownerAddress()
public long deallocatorAddress()
public void deallocate()
deallocate in interface Pointer.Deallocatordeallocate in class Pointer.DeallocatorReferenceprivate void deallocate(long ownerAddress,
long deallocatorAddress)
public String toString()
toString in class Pointer.DeallocatorReferenceCopyright © 2025. All rights reserved.