static class Pointer.ProxyDeallocator extends Pointer.DeallocatorReference
Pointer.Deallocator
that keeps and uses a strong reference to a Buffer or another Pointer.Modifier and Type | Field and Description |
---|---|
(package private) Buffer |
buffer |
(package private) Pointer |
pointer |
bytes, count, deallocator, head, next, prev, totalBytes
Constructor and Description |
---|
ProxyDeallocator(Pointer p,
Buffer b) |
ProxyDeallocator(Pointer p,
Pointer p2) |
Modifier and Type | Method and Description |
---|---|
int |
count() |
void |
deallocate() |
boolean |
release() |
void |
retain() |
String |
toString() |
add, clear, remove
get
enqueue, isEnqueued
public void deallocate()
deallocate
in interface Pointer.Deallocator
deallocate
in class Pointer.DeallocatorReference
public void retain()
retain
in interface Pointer.ReferenceCounter
retain
in class Pointer.DeallocatorReference
public boolean release()
release
in interface Pointer.ReferenceCounter
release
in class Pointer.DeallocatorReference
public int count()
count
in interface Pointer.ReferenceCounter
count
in class Pointer.DeallocatorReference
public String toString()
toString
in class Pointer.DeallocatorReference
Copyright © 2020. All rights reserved.