org.jruby.ext.ffi.jffi
Class CodeMemoryIO

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

public final class CodeMemoryIO
extends InvalidMemoryIO
implements DirectMemoryIO

Representation of code (executable) memory blocks


Field Summary
 
Fields inherited from class org.jruby.ext.ffi.InvalidMemoryIO
runtime
 
Constructor Summary
CodeMemoryIO(Ruby runtime, long address)
           
CodeMemoryIO(Ruby runtime, Pointer pointer)
           
 
Method Summary
 long getAddress()
           
 boolean isDirect()
          Checks if the memory area is a native memory pointer.
 boolean isNull()
          Checks if the memory area is NULL.
 
Methods inherited from class org.jruby.ext.ffi.InvalidMemoryIO
asByteBuffer, clear, ex, get, get, get, get, get, get, getAddress, getByte, getDouble, getErrorClass, getFloat, getInt, getLong, getMemoryIO, getNativeLong, getShort, getZeroTerminatedByteArray, getZeroTerminatedByteArray, indexOf, indexOf, put, put, put, put, put, put, putAddress, putByte, putDouble, putFloat, putInt, putLong, putMemoryIO, putNativeLong, putShort, putZeroTerminatedByteArray, setMemory, 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, get, get, get, get, get, get, getAddress, getByte, getDouble, getFloat, getInt, getLong, getMemoryIO, getNativeLong, getShort, getZeroTerminatedByteArray, getZeroTerminatedByteArray, indexOf, indexOf, put, put, put, put, put, put, putAddress, putByte, putDouble, putFloat, putInt, putLong, putMemoryIO, putNativeLong, putShort, putZeroTerminatedByteArray, setMemory, slice
 

Constructor Detail

CodeMemoryIO

public CodeMemoryIO(Ruby runtime,
                    long address)

CodeMemoryIO

public CodeMemoryIO(Ruby runtime,
                    Pointer pointer)
Method Detail

getAddress

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

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.

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.


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