retdec
Public Member Functions | Public Attributes | Private Attributes | List of all members
retdec::stacofin::DetectedFunction Struct Reference

#include <stacofin.h>

Collaboration diagram for retdec::stacofin::DetectedFunction:
Collaboration graph
[legend]

Public Member Functions

bool operator< (const DetectedFunction &o) const
 
bool allRefsOk () const
 
std::size_t countRefsOk () const
 
float refsOkShare () const
 
std::string getName () const
 
bool isTerminating () const
 
bool isThumb () const
 
void setReferences (const std::string &refsString)
 
void setAddress (retdec::common::Address a)
 
retdec::common::Address getAddress () const
 

Public Attributes

std::size_t size
 Original size of source. More...
 
std::size_t offset
 
std::vector< std::string > names
 Possible original names. More...
 
References references
 Offset-name relocation pairs. More...
 
std::string signaturePath
 Source signature path. More...
 

Private Attributes

retdec::common::Address address
 Virtual address. More...
 

Detailed Description

Structure representing one detected function.

Member Function Documentation

◆ allRefsOk()

bool retdec::stacofin::DetectedFunction::allRefsOk ( ) const

◆ countRefsOk()

std::size_t retdec::stacofin::DetectedFunction::countRefsOk ( ) const

◆ getAddress()

retdec::common::Address retdec::stacofin::DetectedFunction::getAddress ( ) const

◆ getName()

std::string retdec::stacofin::DetectedFunction::getName ( ) const

◆ isTerminating()

bool retdec::stacofin::DetectedFunction::isTerminating ( ) const

◆ isThumb()

bool retdec::stacofin::DetectedFunction::isThumb ( ) const

◆ operator<()

bool retdec::stacofin::DetectedFunction::operator< ( const DetectedFunction o) const

◆ refsOkShare()

float retdec::stacofin::DetectedFunction::refsOkShare ( ) const

◆ setAddress()

void retdec::stacofin::DetectedFunction::setAddress ( retdec::common::Address  a)

Setting an address will also fix addresses of all the function's references.

◆ setReferences()

void retdec::stacofin::DetectedFunction::setReferences ( const std::string &  refsString)

Parse string with references from meta attribute.

Parameters
refsStringreferences string

Member Data Documentation

◆ address

retdec::common::Address retdec::stacofin::DetectedFunction::address
private

Virtual address.

◆ names

std::vector<std::string> retdec::stacofin::DetectedFunction::names

Possible original names.

◆ offset

std::size_t retdec::stacofin::DetectedFunction::offset

◆ references

References retdec::stacofin::DetectedFunction::references

Offset-name relocation pairs.

◆ signaturePath

std::string retdec::stacofin::DetectedFunction::signaturePath

Source signature path.

◆ size

std::size_t retdec::stacofin::DetectedFunction::size

Original size of source.


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