Handles operations related to raw data access from the IDA database.
More...
#include <bytes.hpp>
|
| Bytes (const Database &database) |
| Constructs a bytes handler for the given database. More...
|
|
std::pair< bool, uint8 > | get_byte (const ea_t ea) const |
| Retrieves a byte at the specified address. More...
|
|
std::pair< bool, uint16 > | get_word (const ea_t ea) const |
| Retrieves a word (2 bytes) at the specified address. More...
|
|
std::pair< bool, uint32 > | get_dword (const ea_t ea) const |
| Retrieves a double word (4 bytes) at the specified address. More...
|
|
std::pair< bool, uint64 > | get_qword (const ea_t ea) const |
| Retrieves a quad word (8 bytes) at the specified address. More...
|
|
std::pair< bool, float > | get_float (const ea_t ea) const |
| Retrieves a float value at the specified address. More...
|
|
std::pair< bool, double > | get_double (const ea_t ea) const |
| Retrieves a double (floating-point) value at the specified address. More...
|
|
std::pair< bool, std::string > | get_disassembly (const ea_t ea) const |
| Retrieves the disassembly text at a specified address. More...
|
|
Handles operations related to raw data access from the IDA database.
◆ Bytes()
Bytes::Bytes |
( |
const Database & |
database | ) |
|
|
inline |
Constructs a bytes handler for the given database.
- Parameters
-
database | Reference to the active IDA database. |
◆ get_byte()
std::pair<bool, uint8> Bytes::get_byte |
( |
const ea_t |
ea | ) |
const |
Retrieves a byte at the specified address.
- Parameters
-
- Returns
- A pair of (success flag, value). If the flag is false, the value is undefined.
◆ get_disassembly()
std::pair<bool, std::string> Bytes::get_disassembly |
( |
const ea_t |
ea | ) |
const |
Retrieves the disassembly text at a specified address.
- Parameters
-
- Returns
- A pair of (success flag, disassembly string). If the flag is false, the string is undefined.
◆ get_double()
std::pair<bool, double> Bytes::get_double |
( |
const ea_t |
ea | ) |
const |
Retrieves a double (floating-point) value at the specified address.
- Parameters
-
- Returns
- A pair of (success flag, value). If the flag is false, the value is undefined.
◆ get_dword()
std::pair<bool, uint32> Bytes::get_dword |
( |
const ea_t |
ea | ) |
const |
Retrieves a double word (4 bytes) at the specified address.
- Parameters
-
- Returns
- A pair of (success flag, value). If the flag is false, the value is undefined.
◆ get_float()
std::pair<bool, float> Bytes::get_float |
( |
const ea_t |
ea | ) |
const |
Retrieves a float value at the specified address.
- Parameters
-
- Returns
- A pair of (success flag, value). If the flag is false, the value is undefined.
◆ get_qword()
std::pair<bool, uint64> Bytes::get_qword |
( |
const ea_t |
ea | ) |
const |
Retrieves a quad word (8 bytes) at the specified address.
- Parameters
-
- Returns
- A pair of (success flag, value). If the flag is false, the value is undefined.
◆ get_word()
std::pair<bool, uint16> Bytes::get_word |
( |
const ea_t |
ea | ) |
const |
Retrieves a word (2 bytes) at the specified address.
- Parameters
-
- Returns
- A pair of (success flag, value). If the flag is false, the value is undefined.
The documentation for this class was generated from the following file:
- /home/runner/work/ida-api-domain/ida-api-domain/include/entities/bytes.hpp