|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.ext.ffi.InvalidMemoryIO
org.jruby.ext.ffi.NullMemoryIO
public class NullMemoryIO
An implementation of MemoryIO that throws an exception on any access.
| Field Summary |
|---|
| Fields inherited from class org.jruby.ext.ffi.InvalidMemoryIO |
|---|
runtime |
| Constructor Summary | |
|---|---|
NullMemoryIO(Ruby runtime)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
long |
getAddress()
|
protected RubyClass |
getErrorClass(Ruby runtime)
|
int |
hashCode()
|
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, dup, ex, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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 |
|---|
public NullMemoryIO(Ruby runtime)
| Method Detail |
|---|
protected RubyClass getErrorClass(Ruby runtime)
getErrorClass in class InvalidMemoryIOpublic long getAddress()
getAddress in interface DirectMemoryIOpublic boolean isNull()
MemoryIO
isNull in interface MemoryIOpublic final boolean isDirect()
MemoryIO
isDirect in interface MemoryIOpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||