org.apache.cassandra.cache
Class FreeableMemory

java.lang.Object
  extended by com.sun.jna.Pointer
      extended by com.sun.jna.Memory
          extended by org.apache.cassandra.cache.FreeableMemory

public class FreeableMemory
extends com.sun.jna.Memory


Field Summary
protected  boolean valid
           
 
Fields inherited from class com.sun.jna.Memory
size
 
Fields inherited from class com.sun.jna.Pointer
NULL, peer, SIZE
 
Constructor Summary
FreeableMemory(long size)
           
 
Method Summary
protected  void finalize()
          avoid re-freeing already-freed memory
 void free()
           
 byte getValidByte(long offset)
           
 
Methods inherited from class com.sun.jna.Memory
align, boundsCheck, clear, free, getByte, getByteBuffer, getChar, getDouble, getFloat, getInt, getLong, getPointer, getShort, getSize, getString, isValid, malloc, purge, read, read, read, read, read, read, read, setByte, setChar, setDouble, setFloat, setInt, setLong, setPointer, setShort, setString, share, share, size, toString, valid, write, write, write, write, write, write, write
 
Methods inherited from class com.sun.jna.Pointer
clear, createConstant, createConstant, equals, getByteArray, getCharArray, getDoubleArray, getFloatArray, getIntArray, getLongArray, getNativeLong, getPointerArray, getPointerArray, getShortArray, getString, getStringArray, getStringArray, getStringArray, getStringArray, hashCode, indexOf, nativeValue, nativeValue, read, setMemory, setNativeLong, setString, write
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

valid

protected volatile boolean valid
Constructor Detail

FreeableMemory

public FreeableMemory(long size)
Method Detail

free

public void free()

finalize

protected void finalize()
avoid re-freeing already-freed memory

Overrides:
finalize in class com.sun.jna.Memory

getValidByte

public byte getValidByte(long offset)


Copyright © 2011 The Apache Software Foundation