org.jruby.ext.ffi
Class FreedMemoryIO

java.lang.Object
  extended by org.jruby.ext.ffi.InvalidMemoryIO
      extended by org.jruby.ext.ffi.FreedMemoryIO
All Implemented Interfaces:
AllocatedDirectMemoryIO, DirectMemoryIO, MemoryIO

public final class FreedMemoryIO
extends InvalidMemoryIO
implements AllocatedDirectMemoryIO


Field Summary
 
Fields inherited from class org.jruby.ext.ffi.InvalidMemoryIO
runtime
 
Constructor Summary
FreedMemoryIO(Ruby runtime)
           
 
Method Summary
 void free()
           
 long getAddress()
           
 boolean isDirect()
          Checks if the memory area is a native memory pointer.
 boolean isNull()
          Checks if the memory area is NULL.
 void setAutoRelease(boolean autorelease)
           
 
Methods inherited from class org.jruby.ext.ffi.InvalidMemoryIO
asByteBuffer, clear, dup, ex, get, get, get, get, get, get, getAddress, getByte, getDouble, getErrorClass, getFloat, getInt, getLong, getMemoryIO, getNativeLong, getShort, getZeroTerminatedByteArray, getZeroTerminatedByteArray, indexOf, indexOf, order, put, put, put, put, put, put, putAddress, putByte, putDouble, putFloat, putInt, putLong, putMemoryIO, putNativeLong, putShort, putZeroTerminatedByteArray, setMemory, slice, slice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jruby.ext.ffi.MemoryIO
asByteBuffer, dup, get, get, get, get, get, get, getAddress, getByte, getDouble, getFloat, getInt, getLong, getMemoryIO, getNativeLong, getShort, getZeroTerminatedByteArray, getZeroTerminatedByteArray, indexOf, indexOf, order, put, put, put, put, put, put, putAddress, putByte, putDouble, putFloat, putInt, putLong, putMemoryIO, putNativeLong, putShort, putZeroTerminatedByteArray, setMemory, slice, slice
 

Constructor Detail

FreedMemoryIO

public FreedMemoryIO(Ruby runtime)
Method Detail

isNull

public boolean isNull()
Description copied from interface: MemoryIO
Checks if the memory area is NULL.

Specified by:
isNull in interface MemoryIO
Returns:
true if the memory area is invalid.

isDirect

public boolean isDirect()
Description copied from interface: MemoryIO
Checks if the memory area is a native memory pointer.

Specified by:
isDirect in interface MemoryIO
Returns:
true if the memory area is a native pointer.

free

public void free()
Specified by:
free in interface AllocatedDirectMemoryIO

setAutoRelease

public void setAutoRelease(boolean autorelease)
Specified by:
setAutoRelease in interface AllocatedDirectMemoryIO

getAddress

public long getAddress()
Specified by:
getAddress in interface DirectMemoryIO


Copyright © 2002-2009 JRuby Team. All Rights Reserved.