retdec
|
The Token class - output of tokenizer. More...
#include <intel_hex_tokenizer.h>
Classes | |
struct | REC_TYPE |
Possible Token types. More... | |
Public Member Functions | |
Auxiliary methods | |
int | addStringByTwo (const std::string &str) |
void | controlChecksum () |
Public Attributes | |
unsigned | byteCount = 0 |
Size of data in bytes. More... | |
unsigned | recordType = 0 |
Type of record. More... | |
std::string | address |
Address of data. More... | |
std::string | data |
Data. More... | |
std::string | checksum |
Checksum in ASCII. More... | |
std::string | errorDesc |
Error description in case of REC_TYPE::RT_ERROR. More... | |
bool | checksumValid = false |
True if checksum is valid. False by default. More... | |
The Token class - output of tokenizer.
int retdec::fileformat::IntelHexToken::addStringByTwo | ( | const std::string & | str | ) |
Adds chars of string by two (one data byte) for checksum
str | Input string |
void retdec::fileformat::IntelHexToken::controlChecksum | ( | ) |
Verifies checksum
std::string retdec::fileformat::IntelHexToken::address |
Address of data.
unsigned retdec::fileformat::IntelHexToken::byteCount = 0 |
Size of data in bytes.
std::string retdec::fileformat::IntelHexToken::checksum |
Checksum in ASCII.
bool retdec::fileformat::IntelHexToken::checksumValid = false |
True if checksum is valid. False by default.
std::string retdec::fileformat::IntelHexToken::data |
Data.
std::string retdec::fileformat::IntelHexToken::errorDesc |
Error description in case of REC_TYPE::RT_ERROR.
unsigned retdec::fileformat::IntelHexToken::recordType = 0 |
Type of record.