|
Ghidra 11.4.2
Ghidra internal decompiler documentation.
|
A description where and how data was loaded from memory. More...
#include <jumptable.hh>
Public Member Functions | |
| LoadTable (const Address &ad, int4 sz) | |
| Constructor for a single entry table. | |
| LoadTable (const Address &ad, int4 sz, int4 nm) | |
| Construct a full table. | |
| bool | operator< (const LoadTable &op2) const |
| Compare this with another table by address. | |
| void | encode (Encoder &encoder) const |
| Encode a description of this as an <loadtable> element. | |
| void | decode (Decoder &decoder) |
| Decode this table from a <loadtable> element. | |
Static Public Member Functions | |
| static void | collapseTable (vector< LoadTable > &table) |
| Collapse a sequence of table descriptions. | |
Private Attributes | |
| Address | addr |
| Starting address of table. | |
| int4 | size |
| Size of table entry. | |
| int4 | num |
| Number of entries in table;. | |
Friends | |
| class | EmulateFunction |
A description where and how data was loaded from memory.
This is a generic table description, giving the starting address of the table, the size of an entry, and number of entries.
|
static |
Collapse a sequence of table descriptions.
Sort the entries and collapse any contiguous sequences into a single LoadTable entry.
| table | is the list of entries to collapse |
Referenced by ghidra::JumpTable::recoverAddresses().
| void ghidra::LoadTable::decode | ( | Decoder & | decoder | ) |
Decode this table from a <loadtable> element.
| decoder | is the stream decoder |
References addr, ghidra::Decoder::closeElement(), ghidra::Address::decode(), num, ghidra::Decoder::openElement(), ghidra::Decoder::readSignedInteger(), and size.
| void ghidra::LoadTable::encode | ( | Encoder & | encoder | ) | const |
Encode a description of this as an <loadtable> element.
| encoder | is the stream encoder |
References addr, ghidra::Encoder::closeElement(), ghidra::Address::encode(), num, ghidra::Encoder::openElement(), size, and ghidra::Encoder::writeSignedInteger().