Latest available version: IDA and decompilers v8.2.230124sp1 see all releases
Hex-Rays logo State-of-the-art binary code analysis tools
email icon
octet_generator_t Struct Reference

Get 8 bits of the program at 'ea'. More...

#include <bytes.hpp>

Public Member Functions

 octet_generator_t (ea_t _ea)
 
void invert_byte_order ()
 
 if (avail_bits< r.avail_bits) return 1
 
 if (avail_bits > r.avail_bits) return -1
 

Public Attributes

uint64 value = 0
 
ea_t ea
 
int avail_bits = 0
 
bool high_byte_first = inf_is_wide_high_byte_first()
 
 return
 

Detailed Description

Get 8 bits of the program at 'ea'.

The main usage of this function is to iterate range of bytes. Here is an example:

for ( ... )
{
if ( !get_octet2(&byte, &ogen) )
failed to read an octet
else
success
}
Get 8 bits of the program at 'ea'.
Definition: bytes.hpp:421

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