IDA Domain
bytes.hpp
Go to the documentation of this file.
1 #ifndef IDA_DOMAIN_DATA_HPP
2 #define IDA_DOMAIN_DATA_HPP
3 
5 
6 #ifndef SWIG
8 {
9 #endif
10  class Database;
11 
13  class IDA_API Bytes
14  {
16  const Database &m_database;
17 
19  Bytes() = delete;
20 
21  public:
24  Bytes(const Database &database) : m_database(database)
25  {
26  }
27 
31  std::pair<bool, uint8> get_byte(const ea_t ea) const;
32 
36  std::pair<bool, uint16> get_word(const ea_t ea) const;
37 
41  std::pair<bool, uint32> get_dword(const ea_t ea) const;
42 
46  std::pair<bool, uint64> get_qword(const ea_t ea) const;
47 
51  std::pair<bool, float> get_float(const ea_t ea) const;
52 
56  std::pair<bool, double> get_double(const ea_t ea) const;
57 
61  std::pair<bool, std::string> get_disassembly(const ea_t ea) const;
62  };
63 #ifndef SWIG
64 }
65 #endif
66 
67 #endif // IDA_DOMAIN_DATA_HPP
Handles operations related to raw data access from the IDA database.
Definition: bytes.hpp:14
Bytes(const Database &database)
Constructs a bytes handler for the given database.
Definition: bytes.hpp:24
std::pair< bool, uint64 > get_qword(const ea_t ea) const
Retrieves a quad word (8 bytes) at the specified address.
std::pair< bool, uint32 > get_dword(const ea_t ea) const
Retrieves a double word (4 bytes) at the specified address.
std::pair< bool, float > get_float(const ea_t ea) const
Retrieves a float value at the specified address.
std::pair< bool, uint16 > get_word(const ea_t ea) const
Retrieves a word (2 bytes) at the specified address.
std::pair< bool, double > get_double(const ea_t ea) const
Retrieves a double (floating-point) value at the specified address.
std::pair< bool, uint8 > get_byte(const ea_t ea) const
Retrieves a byte at the specified address.
std::pair< bool, std::string > get_disassembly(const ea_t ea) const
Retrieves the disassembly text at a specified address.
Provides access and control over the loaded IDA database.
Definition: database.hpp:25
#define IDA_API
Definition: common_defines.hpp:11
#define ABI_VERSION_NS
Definition: version.hpp:17