Class Pointer.NativeDeallocator

All Implemented Interfaces:
Pointer.Deallocator, Pointer.ReferenceCounter
Enclosing class:
Pointer

protected static class Pointer.NativeDeallocator extends Pointer.DeallocatorReference
A Pointer.Deallocator that calls, during garbage collection, a native function. Passes as arguments the ownerAddress and deallocatorAddress given to the constructor.
  • Field Details

    • ownerAddress

      private long ownerAddress
    • deallocatorAddress

      private long deallocatorAddress
  • Constructor Details

    • NativeDeallocator

      NativeDeallocator(Pointer p, long ownerAddress, long deallocatorAddress)
  • Method Details