org.jnetpcap.nio
Class JMemoryReference

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.PhantomReference<java.lang.Object>
          extended by org.jnetpcap.nio.DisposableReference
              extended by org.jnetpcap.nio.JMemoryReference
All Implemented Interfaces:
Disposable, Link<DisposableReference>
Direct Known Subclasses:
JScannerReference

public class JMemoryReference
extends DisposableReference

The Class JMemoryReference.

Author:
markbe

Constructor Summary
JMemoryReference(java.lang.Object referant, long address, long size)
          Instantiates a new j memory reference.
 
Method Summary
 void dispose()
          Dispose.
protected  void disposeNative(long size)
          Does a native memory cleanup.
 void remove()
          Removes the.
 int size()
          Size.
 
Methods inherited from class org.jnetpcap.nio.DisposableReference
getTs, linkCollection, linkCollection, linkElement, linkNext, linkNext, linkPrev, linkPrev, setTs, toString
 
Methods inherited from class java.lang.ref.PhantomReference
get
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMemoryReference

public JMemoryReference(java.lang.Object referant,
                        long address,
                        long size)
Instantiates a new j memory reference.

Parameters:
referant - the referant
address - the address
size - the size
Method Detail

dispose

public void dispose()
Dispose.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class DisposableReference
See Also:
DisposableReference.dispose()

disposeNative

protected void disposeNative(long size)
Does a native memory cleanup.

Parameters:
size - the size

remove

public void remove()
Removes the.

Overrides:
remove in class DisposableReference
See Also:
DisposableReference.remove()

size

public int size()
Size.

Overrides:
size in class DisposableReference
Returns:
the int
See Also:
DisposableReference.size()