Package ghidra.util.map
Class ObjectValueMap<T>
java.lang.Object
ghidra.util.map.ValueMap<T>
ghidra.util.map.ObjectValueMap<T>
- Type Parameters:
T- object property value type
- All Implemented Interfaces:
Serializable
Handles general storage and retrieval of object values indexed by long keys.
- See Also:
-
Field Summary
Fields inherited from class ghidra.util.map.ValueMap
noValueException, numProperties, pageSize, propertyPageIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the size (in bytes) of the data that is stored in this property set.getObject(long index) Retrieves the object stored at the given index.protected voidmoveIndex(long from, long to) voidStores an object at the given index.protected voidrestoreProperty(ObjectInputStream ois, long index) protected voidsaveProperty(ObjectOutputStream oos, long index) Methods inherited from class ghidra.util.map.ValueMap
getFirstPropertyIndex, getIndex, getLastPropertyIndex, getName, getNextPropertyIndex, getObjectClass, getOrCreatePage, getPage, getPageID, getPageOffset, getPreviousPropertyIndex, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getSize, hasProperty, intersects, moveRange, remove, removeRange, restoreProperties, saveProperties
-
Constructor Details
-
ObjectValueMap
Constructor for ObjectPropertySet.- Parameters:
name- the name associated with this property set.
-
-
Method Details
-
getDataSize
public int getDataSize()Description copied from class:ValueMapReturns the size (in bytes) of the data that is stored in this property set.- Specified by:
getDataSizein classValueMap<T>- Returns:
- the size (in bytes) of the data that is stored in this property set.
- See Also:
-
putObject
Stores an object at the given index. Any object currently at that index will be replaced by the new object.- Parameters:
index- the index at which to store the object.value- the object to store.
-
getObject
Retrieves the object stored at the given index.- Parameters:
index- the index at which to retrieve the object.- Returns:
- the object stored at the given index or null if no object is stored at the index.
-
moveIndex
protected void moveIndex(long from, long to) -
saveProperty
- Specified by:
savePropertyin classValueMap<T>- Throws:
IOException
-
restoreProperty
protected void restoreProperty(ObjectInputStream ois, long index) throws IOException, ClassNotFoundException - Specified by:
restorePropertyin classValueMap<T>- Throws:
IOExceptionClassNotFoundException
-