Package ghidra.program.model.pcode
Class SymbolEntry
java.lang.Object
ghidra.program.model.pcode.SymbolEntry
- Direct Known Subclasses:
DynamicEntry,MappedEntry
A mapping from a HighSymbol object to the storage that holds the symbol's value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
ChangeModifier and TypeMethodDescriptionNEWabstract voidDecode this entry from the stream.NEWprotected voiddecodeRangeList(Decoder decoder) NEWabstract voidEncode this entry as (a set of) elements to the given streamNEWprotected voidencodeRangelist(Encoder encoder) The storage used to hold this Symbol may be used for other purposes at different points in the code.abstract intgetSize()Get the number of bytes consumed by the symbol when using this storageabstract VariableStorageGet the storage associated with this particular mapping of the Symbolabstract booleanabstract booleanREMOVEDvoidrestoreXML(XmlPullParser parser) RemovedREMOVEDvoidsaveXml(StringBuilder buf) RemovedREMOVEDvoidparseRangeList(XmlPullParser parser) RemovedREMOVEDvoidbuildRangelistXML(StringBuilder res) Removed
-
Field Details
-
symbol
-
pcaddr
-
-
Constructor Details
-
SymbolEntry
Constructor for use with restoreXML- Parameters:
sym- is the symbol owning this entry
-
-
Method Details
-
decode NEW
Decode this entry from the stream. Typically more than one element is consumed.- Parameters:
decoder- is the stream decoder- Throws:
DecoderException- for invalid encodings
-
encode NEW
Encode this entry as (a set of) elements to the given stream- Parameters:
encoder- is the stream encoder- Throws:
IOException- for errors in the underlying stream
-
getStorage
Get the storage associated with this particular mapping of the Symbol- Returns:
- the storage object
-
getSize
public abstract int getSize()Get the number of bytes consumed by the symbol when using this storage- Returns:
- the size of this entry
-
isReadOnly
public abstract boolean isReadOnly()- Returns:
- true if the mapped storage is read-only
-
isVolatile
public abstract boolean isVolatile()- Returns:
- true if the mapped storage is volatile
-
getPCAdress
The storage used to hold this Symbol may be used for other purposes at different points in the code. This returns the earliest address in the code where this storage is used for this symbol- Returns:
- the starting address where the Symbol uses this storage
-
decodeRangeList NEW
- Throws:
DecoderException
-
encodeRangelist NEW
- Throws:
IOException
-