retdec
Public Member Functions | Private Member Functions | Private Attributes | List of all members
retdec::unpacker::Signature::MatchSettings Class Reference

#include <signature.h>

Collaboration diagram for retdec::unpacker::Signature::MatchSettings:
Collaboration graph
[legend]

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

MatchSettingsoperator= (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MatchSettings() [1/2]

retdec::unpacker::Signature::MatchSettings::MatchSettings ( uint64_t  offset = 0,
uint64_t  searchDistance = 0 
)

Constructor.

Parameters
offsetThe offset to set.
searchDistanceMaximum search distance to sit.

◆ MatchSettings() [2/2]

retdec::unpacker::Signature::MatchSettings::MatchSettings ( const MatchSettings settings)

Member Function Documentation

◆ getOffset()

uint64_t retdec::unpacker::Signature::MatchSettings::getOffset ( ) const

Returns the offset in the settings.

Returns
The offset.

◆ getSearchDistance()

uint64_t retdec::unpacker::Signature::MatchSettings::getSearchDistance ( ) const

Returns the maximum searching distance while matching.

Returns
The maximum searching distance.

◆ getSectionOrSegmentIndex()

uint32_t retdec::unpacker::Signature::MatchSettings::getSectionOrSegmentIndex ( ) const

◆ isSearch()

bool retdec::unpacker::Signature::MatchSettings::isSearch ( ) const

Returns whether the settings are set to searching while matching.

Returns
True if set to search matching, otherwise false.

◆ operator=()

MatchSettings& retdec::unpacker::Signature::MatchSettings::operator= ( const MatchSettings )
private

◆ setOffset()

void retdec::unpacker::Signature::MatchSettings::setOffset ( uint64_t  offset)

Sets the offset in the settings.

Parameters
offsetThe offset to set.

◆ setSearchDistance()

void retdec::unpacker::Signature::MatchSettings::setSearchDistance ( uint64_t  distance)

Sets the maximum searching distance while matching.

Parameters
distanceThe maximum searching distance to set.

◆ setSectionOrSegmentIndex()

void retdec::unpacker::Signature::MatchSettings::setSectionOrSegmentIndex ( uint32_t  secSegIndex)

Member Data Documentation

◆ _offset

uint64_t retdec::unpacker::Signature::MatchSettings::_offset
private

Offset where to start matching.

◆ _searchDistance

uint64_t retdec::unpacker::Signature::MatchSettings::_searchDistance
private

Maximum searching distance. No searching if this is set 0.


The documentation for this class was generated from the following files: