LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
LIEF::assembly::Instruction Class Reference

This class represents an assembly instruction. More...

#include <Instruction.hpp>

Classes

class  Iterator
 

Public Member Functions

virtual ~Instruction ()
 
uint64_t address () const
 Address of the instruction.
 
size_t size () const
 Size of the instruction in bytes.
 
const std::vector< uint8_t > & raw () const
 Raw bytes of the current instruction.
 
std::string mnemonic () const
 Instruction mnemonic (e.g. br)
 
std::string to_string () const
 Representation of the current instruction in a pretty assembly way.
 

Detailed Description

This class represents an assembly instruction.

Constructor & Destructor Documentation

◆ ~Instruction()

virtual LIEF::assembly::Instruction::~Instruction ( )
virtual

Member Function Documentation

◆ address()

uint64_t LIEF::assembly::Instruction::address ( ) const

Address of the instruction.

◆ mnemonic()

std::string LIEF::assembly::Instruction::mnemonic ( ) const

Instruction mnemonic (e.g. br)

◆ raw()

const std::vector< uint8_t > & LIEF::assembly::Instruction::raw ( ) const

Raw bytes of the current instruction.

◆ size()

size_t LIEF::assembly::Instruction::size ( ) const

Size of the instruction in bytes.

◆ to_string()

std::string LIEF::assembly::Instruction::to_string ( ) const

Representation of the current instruction in a pretty assembly way.

Referenced by operator<<.


The documentation for this class was generated from the following file: