Package org.python.modules.jffi
Class NullMemory
java.lang.Object
org.python.modules.jffi.InvalidMemory
org.python.modules.jffi.NullMemory
- All Implemented Interfaces:
DirectMemory,Memory
An implementation of MemoryIO that throws an exception on any access.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.python.modules.jffi.InvalidMemory
asByteBuffer, clear, get, get, get, get, get, get, getAddress, getByte, getDouble, getFloat, getInt, getLong, getMemory, getNativeLong, getShort, getZeroTerminatedByteArray, getZeroTerminatedByteArray, indexOf, indexOf, put, put, put, put, put, put, putAddress, putAddress, putByte, putDouble, putFloat, putInt, putLong, putMemory, putNativeLong, putShort, putZeroTerminatedByteArray, setMemory, sliceMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.python.modules.jffi.Memory
get, get, get, get, get, get, getAddress, getByte, getDouble, getFloat, getInt, getLong, getMemory, getNativeLong, getShort, getZeroTerminatedByteArray, indexOf, indexOf, put, put, put, put, put, put, putAddress, putAddress, putByte, putDouble, putFloat, putInt, putLong, putNativeLong, putShort, putZeroTerminatedByteArray, setMemory, slice
-
Constructor Details
-
NullMemory
public NullMemory()
-
-
Method Details
-
getAddress
public long getAddress()- Specified by:
getAddressin interfaceDirectMemory
-
isNull
public boolean isNull()Description copied from interface:MemoryChecks if the memory area is NULL. -
isDirect
public final boolean isDirect()Description copied from interface:MemoryChecks if the memory area is a native memory pointer. -
equals
-
hashCode
public int hashCode()
-