|
LIEF: Library to Instrument Executable Formats Version 1.0.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, AssemblerConfig &config=AssemblerConfig::default_config()) |
| std::vector< uint8_t > | assemble (uint64_t address, const std::string &Asm, LIEF::Binary &bin, AssemblerConfig &config=AssemblerConfig::default_config()) |
| std::vector< uint8_t > | assemble (uint64_t address, const llvm::MCInst &inst, LIEF::Binary &bin) |
| std::vector< uint8_t > | assemble (uint64_t address, const std::vector< llvm::MCInst > &inst, LIEF::Binary &bin) |
| ~Engine () | |
This class interfaces the assembler/disassembler support.
Disassembly instruction iterator.
|
delete |
Referenced by Engine(), Engine(), operator=(), and operator=().
| LIEF::assembly::Engine::Engine | ( | std::unique_ptr< details::Engine > | impl | ) |
| LIEF::assembly::Engine::~Engine | ( | ) |
References LIEF_LOCAL.
| std::vector< uint8_t > LIEF::assembly::Engine::assemble | ( | uint64_t | address, |
| const llvm::MCInst & | inst, | ||
| LIEF::Binary & | bin ) |
| std::vector< uint8_t > LIEF::assembly::Engine::assemble | ( | uint64_t | address, |
| const std::string & | Asm, | ||
| AssemblerConfig & | config = AssemblerConfig::default_config() ) |
| std::vector< uint8_t > LIEF::assembly::Engine::assemble | ( | uint64_t | address, |
| const std::string & | Asm, | ||
| LIEF::Binary & | bin, | ||
| AssemblerConfig & | config = AssemblerConfig::default_config() ) |
| std::vector< uint8_t > LIEF::assembly::Engine::assemble | ( | uint64_t | address, |
| const std::vector< llvm::MCInst > & | inst, | ||
| LIEF::Binary & | bin ) |
|
inline |
Disassemble the given vector of bytes with the address specified in the second parameter.
References disassemble().
| 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.
References disassemble().
Referenced by disassemble(), and disassemble().