]> git.siccegge.de Git - frida/frida.git/blob - src/disassembler/Instruction.hxx
Rework API for getting at instructions
[frida/frida.git] / src / disassembler / Instruction.hxx
1 #ifndef INCLUDE__Instruction_hxx_
2 #define INCLUDE__Instruction_hxx_
3
4 #include <vector>
5 #include <cstdint>
6 #include <string>
7
8 class Instruction {
9 public:
10 Instruction(uint64_t address, const std::string& text, const std::vector<uint8_t>& bytes, const std::string& reference)
11 : address(address), text(text), bytes(bytes), reference(reference) {}
12 uint64_t getAddress() const {return address;}
13 const std::string& getText() const {return text;}
14 const std::vector<uint8_t>& getBytes() const {return bytes;}
15 const std::string& getReference() const {return reference;}
16 private:
17 uint64_t address;
18 std::string text;
19 std::vector<uint8_t> bytes;
20 std::string reference;
21 };
22
23 #endif /* INCLUDE__Instruction_hxx_ */