retdec
logic.h
Go to the documentation of this file.
1 
7 #ifndef PAT2YARA_LOGIC_H
8 #define PAT2YARA_LOGIC_H
9 
10 #include <memory>
11 #include <string>
12 
13 // Forward declarations.
14 namespace yaramod {
15 
16  class HexString;
17  class Rule;
18 } // namespace yaramod
19 
21  const std::shared_ptr<yaramod::HexString> &pattern);
22 
24  const std::shared_ptr<yaramod::HexString> &pattern,
25  std::size_t pureMinimum);
26 
27 std::size_t getHexStringSize(
28  const std::shared_ptr<yaramod::HexString> &pattern);
29 
30 std::size_t getTrailingNopSize(
31  const std::shared_ptr<yaramod::HexString> &pattern,
32  const std::uint8_t nopOpCode);
33 
35  const yaramod::Rule* rule);
36 
38  const yaramod::Rule* rule);
39 
40 #endif
std::size_t getNamedRelocationCount(const yaramod::Rule *rule)
std::size_t getHexStringSize(const std::shared_ptr< yaramod::HexString > &pattern)
bool nameFilter(const yaramod::Rule *rule)
bool hasEnoughPureInformation(const std::shared_ptr< yaramod::HexString > &pattern, std::size_t pureMinimum)
std::size_t getPureInformationSize(const std::shared_ptr< yaramod::HexString > &pattern)
std::size_t getTrailingNopSize(const std::shared_ptr< yaramod::HexString > &pattern, const std::uint8_t nopOpCode)
Definition: symbol_pattern.h:17