decompiler
1.0.0
|
An input or output parameter to a p-code injection payload. More...
#include <pcodeinject.hh>
Public Member Functions | |
InjectParameter (const string &nm, uint4 sz) | |
Constructor. | |
const string & | getName (void) const |
Get the parameter name. | |
int4 | getIndex (void) const |
Get the assigned index. | |
uint4 | getSize (void) const |
Get the size of the parameter in bytes. | |
Private Attributes | |
string | name |
Name of the parameter (for use in parsing p-code source) | |
int4 | index |
Unique index assigned (for cross referencing associated Varnode in the InjectContext) | |
uint4 | size |
Size of the parameter Varnode in bytes. | |
Friends | |
class | InjectPayload |
An input or output parameter to a p-code injection payload.
Within the chunk of p-code being injected, this is a placeholder for Varnodes that serve as inputs or outputs to the chunk, which are filled-in in the context of the injection. For instance, for a call-fixup that injects a user-defined p-code op, the input Varnodes would be substituted with the actual input Varnodes to the user-defined op.