|
decompiler 1.0.0
|
A tracked register (Varnode) and the value it contains. More...
#include <globalcontext.hh>
Public Member Functions | |
| void | decode (Decoder &decoder) |
| Decode this from a stream. More... | |
| void | encode (Encoder &encoder) const |
| Encode this to a stream. More... | |
Public Attributes | |
| VarnodeData | loc |
| Storage details of the register being tracked. | |
| uintb | val |
| The value of the register. | |
A tracked register (Varnode) and the value it contains.
This is the object returned when querying for tracked registers, via ContextDatabase::getTrackedSet(). It holds the storage details of the register and the actual value it holds at the point of the query.
| void TrackedContext::decode | ( | Decoder & | decoder | ) |
Decode this from a stream.
Parse a <set> element to fill in the storage and value details.
| decoder | is the stream decoder |
References Decoder::closeElement(), VarnodeData::decodeFromAttributes(), ELEM_SET, loc, Decoder::openElement(), Decoder::readUnsignedInteger(), and val.
| void TrackedContext::encode | ( | Encoder & | encoder | ) | const |
Encode this to a stream.
The register storage and value are encoded as a <set> element.
| encoder | is the stream encoder |
References Encoder::closeElement(), ELEM_SET, AddrSpace::encodeAttributes(), loc, VarnodeData::offset, Encoder::openElement(), VarnodeData::size, VarnodeData::space, val, and Encoder::writeUnsignedInteger().