Package ghidra.util.prop
Class LongPropertySet
- java.lang.Object
-
- ghidra.util.prop.PropertySet
-
- ghidra.util.prop.LongPropertySet
-
- All Implemented Interfaces:
java.io.Serializable
public class LongPropertySet extends PropertySet
Handles general storage and retrieval of long values indexed by long keys.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ghidra.util.prop.PropertySet
noValueException, numProperties, pageSize, propertyPageIndex
-
-
Constructor Summary
Constructors Constructor Description LongPropertySet(java.lang.String name)
Constructor for longPropertySet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyValue(PropertyVisitor visitor, long addr)
Based upon the type of property manager that this is, the appropriate visit() method will be called within the PropertyVisitor.int
getDataSize()
Returns the size (in bytes) of the data that is stored in this property set.long
getLong(long index)
Retrieves the long value stored at the given index.protected void
moveIndex(long from, long to)
void
putLong(long index, long value)
Stores an long value at the given index.protected void
restoreProperty(java.io.ObjectInputStream ois, long index)
restores the property from the input stream to the given index.protected void
saveProperty(java.io.ObjectOutputStream oos, long index)
saves the property at the given index to the given output stream.-
Methods inherited from class ghidra.util.prop.PropertySet
getFirstPropertyIndex, getIndex, getLastPropertyIndex, getName, getNextPropertyIndex, getObjectClass, getOrCreatePage, getPage, getPageID, getPageOffset, getPreviousPropertyIndex, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getPropertyIterator, getSize, hasProperty, intersects, moveRange, remove, removeRange, restoreAll, restoreProperties, saveAll, saveProperties
-
-
-
-
Method Detail
-
getDataSize
public int getDataSize()
Description copied from class:PropertySet
Returns the size (in bytes) of the data that is stored in this property set.- Specified by:
getDataSize
in classPropertySet
- Returns:
- the size (in bytes) of the data that is stored in this property set.
- See Also:
PropertySet.getDataSize()
-
putLong
public void putLong(long index, long value)
Stores an long value at the given index. Any value currently at that index will be replaced by the new value.- Parameters:
index
- the index at which to store the long value.value
- the long value to store.
-
getLong
public long getLong(long index) throws NoValueException
Retrieves the long value stored at the given index.- Parameters:
index
- the index at which to retrieve the long value.- Returns:
- long the value stored at the given index.
- Throws:
NoValueException
- if there is no long value stored at the index.
-
moveIndex
protected void moveIndex(long from, long to)
- Specified by:
moveIndex
in classPropertySet
-
saveProperty
protected void saveProperty(java.io.ObjectOutputStream oos, long index) throws java.io.IOException
saves the property at the given index to the given output stream.- Specified by:
saveProperty
in classPropertySet
- Throws:
java.io.IOException
-
restoreProperty
protected void restoreProperty(java.io.ObjectInputStream ois, long index) throws java.io.IOException
restores the property from the input stream to the given index.- Specified by:
restoreProperty
in classPropertySet
- Throws:
java.io.IOException
-
applyValue
public void applyValue(PropertyVisitor visitor, long addr)
Description copied from class:PropertySet
Based upon the type of property manager that this is, the appropriate visit() method will be called within the PropertyVisitor.- Specified by:
applyValue
in classPropertySet
- Parameters:
visitor
- object implementing the PropertyVisitor interface.addr
- the address of where to visit (get) the property.
-
-