Package org.bytedeco.javacpp
Class Pointer.NativeDeallocator
- All Implemented Interfaces:
Pointer.Deallocator,Pointer.ReferenceCounter
- Enclosing class:
Pointer
A
Pointer.Deallocator that calls, during garbage collection, a native function.
Passes as arguments the ownerAddress and deallocatorAddress given to the constructor.-
Method Summary
Methods inherited from class java.lang.ref.PhantomReference
getMethods inherited from class java.lang.ref.Reference
clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Method Details
-
ownerAddress
public long ownerAddress() -
deallocatorAddress
public long deallocatorAddress() -
deallocate
public void deallocate()- Specified by:
deallocatein interfacePointer.Deallocator
-
toString
-
clear
public void clear() -
retain
public void retain()- Specified by:
retainin interfacePointer.ReferenceCounter
-
release
public boolean release()- Specified by:
releasein interfacePointer.ReferenceCounter
-
count
public int count()- Specified by:
countin interfacePointer.ReferenceCounter
-