|
fcml
1.2.2
|
Stateful disassembler can be used when you have to disassemble a larger piece of code one instruction by one. More...
#include <fcml_stateful_disassembler.hpp>
Public Member Functions | |
| StatefulDisassembler (Disassembler &disassembler, DisassemblerContext &context, bool enableRendering=false) | |
| Creates a stateful disassembler for given FCML disassembler and context. More... | |
| virtual | ~StatefulDisassembler () |
| Destructor. More... | |
| StatefulDisassembler & | operator>> (Instruction &instruction) |
| Disassembles the next instruction pointed by the disassembler state. More... | |
| StatefulDisassembler & | operator>> (fcml_cstring &instruction) |
| Disassembles the next instruction from the buffer and renders it. More... | |
| StatefulDisassembler & | operator>> (fcml_costream &ostream) |
| Disassembles the next instruction from the buffer and renders it directly into the output stream. More... | |
| RenderConfig & | getRendererConfig () |
| Gets renderer configuration used by the instruction buffer. More... | |
| const RenderConfig & | getRendererConfig () const |
| Gets renderer configuration used by the internally managed instruction renderer. More... | |
| const fcml_cstring & | getEndOfLine () const |
| Gets end of line characters sequence used by the renderer. More... | |
| void | setEndOfLine (const fcml_cstring &endOfLine) |
| Sets dedicated end of line characters. More... | |
Stateful disassembler can be used when you have to disassemble a larger piece of code one instruction by one.
It also supports rendering directly using internally managed renderer.
|
inline |
Creates a stateful disassembler for given FCML disassembler and context.
Rendering support can be enabled optionally.
| disassembler | The classic FCML disassembler used to disassemble instructions. |
| context | The disassembler context. |
| enableRendering | Enables instruction rendering, which is disabled by default. |
|
inlinevirtual |
Destructor.
|
inline |
Gets end of line characters sequence used by the renderer.
|
inline |
Gets renderer configuration used by the instruction buffer.
|
inline |
Gets renderer configuration used by the internally managed instruction renderer.
|
inline |
Disassembles the next instruction pointed by the disassembler state.
| [out] | instruction | The destination instruction model. |
| DisassemblingFailedException |
|
inline |
Disassembles the next instruction from the buffer and renders it.
| [out] | instruction | Destination string for the instruction. |
|
inline |
Disassembles the next instruction from the buffer and renders it directly into the output stream.
| [out] | ostream | The output stream. |
|
inline |
Sets dedicated end of line characters.
| endOfLine | A sequence of characters used as line ending. |
1.8.13