Package ghidra.util.prop
Class ShortPropertySet
- java.lang.Object
- 
- ghidra.util.prop.PropertySet
- 
- ghidra.util.prop.ShortPropertySet
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ShortPropertySet extends PropertySet Handles general storage and retrieval of short values indexed by long keys.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class ghidra.util.prop.PropertySetnoValueException, numProperties, pageSize, propertyPageIndex
 
- 
 - 
Constructor SummaryConstructors Constructor Description ShortPropertySet(java.lang.String name)Constructor for ShortPropertySet.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyValue(PropertyVisitor visitor, long addr)Based upon the type of property manager that this is, the appropriate visit() method will be called within the PropertyVisitor.intgetDataSize()Returns the size (in bytes) of the data that is stored in this property set.shortgetShort(long index)Retrieves the short value stored at the given index.protected voidmoveIndex(long from, long to)voidputShort(long index, short value)Stores a short value at the given index.protected voidrestoreProperty(java.io.ObjectInputStream ois, long index)restores the property from the input stream to the given index.protected voidsaveProperty(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.PropertySetgetFirstPropertyIndex, 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- 
getDataSizepublic int getDataSize() Description copied from class:PropertySetReturns the size (in bytes) of the data that is stored in this property set.- Specified by:
- getDataSizein class- PropertySet
- Returns:
- the size (in bytes) of the data that is stored in this property set.
- See Also:
- PropertySet.getDataSize()
 
 - 
putShortpublic void putShort(long index, short value)Stores a short 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 short value.
- value- the short value to store.
 
 - 
getShortpublic short getShort(long index) throws NoValueExceptionRetrieves the short value stored at the given index.- Parameters:
- index- the index at which to retrieve the short value.
- Returns:
- the value stored at the given index.
- Throws:
- NoValueException- if there is no short value stored at the index.
 
 - 
moveIndexprotected void moveIndex(long from, long to)- Specified by:
- moveIndexin class- PropertySet
 
 - 
savePropertyprotected void saveProperty(java.io.ObjectOutputStream oos, long index) throws java.io.IOExceptionsaves the property at the given index to the given output stream.- Specified by:
- savePropertyin class- PropertySet
- Throws:
- java.io.IOException
 
 - 
restorePropertyprotected void restoreProperty(java.io.ObjectInputStream ois, long index) throws java.io.IOExceptionrestores the property from the input stream to the given index.- Specified by:
- restorePropertyin class- PropertySet
- Throws:
- java.io.IOException
 
 - 
applyValuepublic void applyValue(PropertyVisitor visitor, long addr) Description copied from class:PropertySetBased upon the type of property manager that this is, the appropriate visit() method will be called within the PropertyVisitor.- Specified by:
- applyValuein class- PropertySet
- Parameters:
- visitor- object implementing the PropertyVisitor interface.
- addr- the address of where to visit (get) the property.
- See Also:
- PropertySet.applyValue(PropertyVisitor, long)
 
 
- 
 
-