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