A disassembler for CBO files.
More...
#include <bond/tools/disassembler.h>
A disassembler for CBO files.
The Disassembler decodes CBO data and writes a human-readable representation of its contents, including the bytecode of its functions, to an OutputStream. A single Disassembler can be reused to disassemble many CBO buffers or streams.
- See also
- InputStream, OutputStream
◆ Disassembler()
| Bond::Disassembler::Disassembler |
( |
Allocator & | allocator | ) |
|
|
inlineexplicit |
Constructs a Disassembler object.
- Parameters
-
| allocator | The memory allocator used for temporary allocations during disassembly. |
◆ ~Disassembler()
| Bond::Disassembler::~Disassembler |
( |
| ) |
|
|
inline |
◆ Disassemble() [1/2]
| void Bond::Disassembler::Disassemble |
( |
const void * | byteCode, |
|
|
size_t | length, |
|
|
OutputStream & | outputStream ) |
Decodes the CBO data in the given buffer and writes disassembled output.
The data is first validated with a CboValidator, which throws a Bond::Exception if it is invalid.
- Parameters
-
| byteCode | Pointer to the start of the CBO data. |
| length | The number of bytes of CBO data. |
| outputStream | Stream where the disassembled output is written. |
◆ Disassemble() [2/2]
Reads CBO data from the given stream, starting at its current position, and writes disassembled output.
The data is first validated with a CboValidator, which throws a Bond::Exception if it is invalid.
- Parameters
-
| cboStream | Input stream containing CBO data to disassemble. |
| outputStream | Stream where the disassembled output is written. |
◆ operator=()
The documentation for this class was generated from the following file:
- include/bond/tools/disassembler.h