LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This class interfaces the assembler/disassembler support. More...
#include <Engine.hpp>
Public Types | |
using | instructions_it = iterator_range<Instruction::Iterator> |
Disassembly instruction iterator. | |
Public Member Functions | |
Engine ()=delete | |
Engine (std::unique_ptr< details::Engine > impl) | |
Engine (const Engine &)=delete | |
Engine & | operator= (const Engine &)=delete |
Engine (Engine &&) noexcept | |
Engine & | operator= (Engine &&) noexcept |
instructions_it | disassemble (const uint8_t *buffer, size_t size, uint64_t addr) |
Disassemble the provided buffer with the address specified in the second parameter. | |
instructions_it | disassemble (const std::vector< uint8_t > &bytes, uint64_t addr) |
Disassemble the given vector of bytes with the address specified in the second parameter. | |
std::vector< uint8_t > | assemble (uint64_t address, const std::string &Asm) |
std::vector< uint8_t > | assemble (uint64_t address, const std::string &Asm, LIEF::Binary &bin) |
~Engine () | |
This class interfaces the assembler/disassembler support.
Disassembly instruction iterator.
|
delete |
LIEF::assembly::Engine::Engine | ( | std::unique_ptr< details::Engine > | impl | ) |
|
delete |
|
noexcept |
LIEF::assembly::Engine::~Engine | ( | ) |
std::vector< uint8_t > LIEF::assembly::Engine::assemble | ( | uint64_t | address, |
const std::string & | Asm ) |
std::vector< uint8_t > LIEF::assembly::Engine::assemble | ( | uint64_t | address, |
const std::string & | Asm, | ||
LIEF::Binary & | bin ) |
|
inline |
Disassemble the given vector of bytes with the address specified in the second parameter.
instructions_it LIEF::assembly::Engine::disassemble | ( | const uint8_t * | buffer, |
size_t | size, | ||
uint64_t | addr ) |
Disassemble the provided buffer with the address specified in the second parameter.