retdec
|
#include <signature.h>
Public Member Functions | |
MatchSettings (uint64_t offset=0, uint64_t searchDistance=0) | |
MatchSettings (const MatchSettings &settings) | |
uint64_t | getOffset () const |
void | setOffset (uint64_t offset) |
uint32_t | getSectionOrSegmentIndex () const |
void | setSectionOrSegmentIndex (uint32_t secSegIndex) |
bool | isSearch () const |
uint64_t | getSearchDistance () const |
void | setSearchDistance (uint64_t distance) |
Private Member Functions | |
MatchSettings & | operator= (const MatchSettings &) |
Private Attributes | |
uint64_t | _offset |
Offset where to start matching. More... | |
uint64_t | _searchDistance |
Maximum searching distance. No searching if this is set 0. More... | |
Class that represents the settings for matching a signature. The settings contains the offset of where to start matching.and also the the maximum searching distance if the signature is not on static position.
retdec::unpacker::Signature::MatchSettings::MatchSettings | ( | uint64_t | offset = 0 , |
uint64_t | searchDistance = 0 |
||
) |
Constructor.
offset | The offset to set. |
searchDistance | Maximum search distance to sit. |
retdec::unpacker::Signature::MatchSettings::MatchSettings | ( | const MatchSettings & | settings | ) |
uint64_t retdec::unpacker::Signature::MatchSettings::getOffset | ( | ) | const |
Returns the offset in the settings.
uint64_t retdec::unpacker::Signature::MatchSettings::getSearchDistance | ( | ) | const |
Returns the maximum searching distance while matching.
uint32_t retdec::unpacker::Signature::MatchSettings::getSectionOrSegmentIndex | ( | ) | const |
bool retdec::unpacker::Signature::MatchSettings::isSearch | ( | ) | const |
Returns whether the settings are set to searching while matching.
|
private |
void retdec::unpacker::Signature::MatchSettings::setOffset | ( | uint64_t | offset | ) |
Sets the offset in the settings.
offset | The offset to set. |
void retdec::unpacker::Signature::MatchSettings::setSearchDistance | ( | uint64_t | distance | ) |
Sets the maximum searching distance while matching.
distance | The maximum searching distance to set. |
void retdec::unpacker::Signature::MatchSettings::setSectionOrSegmentIndex | ( | uint32_t | secSegIndex | ) |
|
private |
Offset where to start matching.
|
private |
Maximum searching distance. No searching if this is set 0.