Package jnr.ffi.provider
Class DefaultObjectReferenceManager.ObjectReference
- java.lang.Object
-
- jnr.ffi.Pointer
-
- jnr.ffi.provider.AbstractMemoryIO
-
- jnr.ffi.provider.InAccessibleMemoryIO
-
- jnr.ffi.provider.DefaultObjectReferenceManager.ObjectReference
-
- Enclosing class:
- DefaultObjectReferenceManager
private static final class DefaultObjectReferenceManager.ObjectReference extends InAccessibleMemoryIO
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Objectreferent
-
Constructor Summary
Constructors Constructor Description ObjectReference(Runtime runtime, long address, java.lang.Object referent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()longsize()Gets the size of this memory object in bytes (optional operation).-
Methods inherited from class jnr.ffi.provider.InAccessibleMemoryIO
array, arrayLength, arrayOffset, error, get, get, get, get, get, get, getByte, getDouble, getFloat, getInt, getLong, getLongLong, getPointer, getPointer, getShort, getString, getString, hasArray, indexOf, put, put, put, put, put, put, putByte, putDouble, putFloat, putInt, putLong, putLongLong, putPointer, putShort, putString, setMemory
-
Methods inherited from class jnr.ffi.provider.AbstractMemoryIO
checkBounds, checkBounds, getAddress, getInt, getNativeLong, indexOf, putAddress, putAddress, putInt, putNativeLong, slice, slice, transferFrom, transferTo
-
Methods inherited from class jnr.ffi.Pointer
address, get, getNullTerminatedPointerArray, getNullTerminatedStringArray, getRuntime, isDirect, newIntPointer, put, toString, wrap, wrap, wrap
-
-
-
-
Constructor Detail
-
ObjectReference
public ObjectReference(Runtime runtime, long address, java.lang.Object referent)
-
-
Method Detail
-
size
public long size()
Description copied from class:PointerGets the size of this memory object in bytes (optional operation).
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-