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
public class NullMemory extends InvalidMemory implements DirectMemory
An implementation of MemoryIO that throws an exception on any access.
-
-
Constructor Summary
Constructors Constructor Description NullMemory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetAddress()inthashCode()booleanisDirect()Checks if the memory area is a native memory pointer.booleanisNull()Checks if the memory area is NULL.-
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, slice
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods 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
-
-
-
-
Method Detail
-
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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-