retdec
|
#include <relocation.h>
Public Member Functions | |
Getters | |
std::string | getSymbolName () const |
std::string | getOffsetStr (std::ios_base &(*format)(std::ios_base &)) const |
std::string | getSymbolValueStr () const |
std::string | getRelocationTypeStr () const |
std::string | getAddendStr () const |
std::string | getCalculatedValueStr () const |
Setters | |
void | setSymbolName (std::string name) |
void | setOffset (unsigned long long value) |
void | setSymbolValue (unsigned long long value) |
void | setRelocationType (unsigned long long type) |
void | setAddend (long long value) |
void | setCalculatedValue (long long value) |
Private Attributes | |
std::string | symbolName |
name of associated symbol More... | |
unsigned long long | offset = std::numeric_limits<unsigned long long>::max() |
relocation offset More... | |
unsigned long long | symbolValue = std::numeric_limits<unsigned long long>::max() |
value of associated symbol More... | |
unsigned long long | relocationType = std::numeric_limits<unsigned long long>::max() |
type of relocation More... | |
long long | addend = std::numeric_limits<long long>::min() |
relocation addend More... | |
long long | calculatedValue = std::numeric_limits<long long>::min() |
calculated value of relocation More... | |
Class for one relocation
Value std::numeric_limits<unsigned long long>::max() mean unspecified value or error for unsigned integer types. Value std::numeric_limits<long long>::min() mean unspecified value or error for signed integer types.
std::string retdec::fileinfo::Relocation::getAddendStr | ( | ) | const |
Get relocation addend
std::string retdec::fileinfo::Relocation::getCalculatedValueStr | ( | ) | const |
Get calculated value
std::string retdec::fileinfo::Relocation::getOffsetStr | ( | std::ios_base &(*)(std::ios_base &) | format | ) | const |
Get relocation offset
format | Format of result (e.g. std::dec, std::hex) |
std::string retdec::fileinfo::Relocation::getRelocationTypeStr | ( | ) | const |
Get relocation type
std::string retdec::fileinfo::Relocation::getSymbolName | ( | ) | const |
Get name of associated symbol
std::string retdec::fileinfo::Relocation::getSymbolValueStr | ( | ) | const |
Get value of associated symbol
void retdec::fileinfo::Relocation::setAddend | ( | long long | value | ) |
Set relocation addend
value | Relocation addend |
void retdec::fileinfo::Relocation::setCalculatedValue | ( | long long | value | ) |
Set calculated value
value | Calculated value |
void retdec::fileinfo::Relocation::setOffset | ( | unsigned long long | value | ) |
Set relocation offset
value | Relocation offset |
void retdec::fileinfo::Relocation::setRelocationType | ( | unsigned long long | type | ) |
Set type of relocation
type | Type of relocation |
void retdec::fileinfo::Relocation::setSymbolName | ( | std::string | name | ) |
Set name of associated symbol
name | Name of symbol associated with relocation |
void retdec::fileinfo::Relocation::setSymbolValue | ( | unsigned long long | value | ) |
Set value of symbol associated with relocation
value | Value of symbol associated with relocation |
|
private |
relocation addend
|
private |
calculated value of relocation
|
private |
relocation offset
|
private |
type of relocation
|
private |
name of associated symbol
|
private |
value of associated symbol