retdec
Private Attributes | List of all members
retdec::yaracpp::YaraMatch Class Reference

#include <yara_match.h>

Collaboration diagram for retdec::yaracpp::YaraMatch:
Collaboration graph
[legend]

Public Member Functions

Getters
std::size_t getOffset () const
 
std::size_t getDataSize () const
 
const std::vector< std::uint8_t > & getData () const
 
Setters
void setOffset (std::size_t offsetValue)
 
void setData (const std::uint8_t *dataBuffer, std::size_t dataLength)
 
Other methods
void addByte (std::uint8_t byte)
 

Private Attributes

std::size_t offset
 
std::vector< std::uint8_t > data
 

Detailed Description

Representation of one match

Member Function Documentation

◆ addByte()

void retdec::yaracpp::YaraMatch::addByte ( std::uint8_t  byte)

Add detected byte

Parameters
byteValue of byte

◆ getData()

const std::vector< std::uint8_t > & retdec::yaracpp::YaraMatch::getData ( ) const

Get stored bytes

Returns
Byte representation of match

◆ getDataSize()

std::size_t retdec::yaracpp::YaraMatch::getDataSize ( ) const

Get size of stored bytes

Returns
size of stored bytes

◆ getOffset()

std::size_t retdec::yaracpp::YaraMatch::getOffset ( ) const

Get offset of detection

Returns
Offset of detection

◆ setData()

void retdec::yaracpp::YaraMatch::setData ( const std::uint8_t *  dataBuffer,
std::size_t  dataLength 
)

Set detected data

Parameters
dataBufferPointer to the beginning of the data
dataLengthLength of the buffer

◆ setOffset()

void retdec::yaracpp::YaraMatch::setOffset ( std::size_t  offsetValue)

Set offset of detection

Parameters
offsetValueOffset of detection

Member Data Documentation

◆ data

std::vector<std::uint8_t> retdec::yaracpp::YaraMatch::data
private

◆ offset

std::size_t retdec::yaracpp::YaraMatch::offset
private

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