Struct Pattern#

Struct Documentation#

struct Pattern#

IDA-style pattern

Public Functions

template<size_t Len>
inline constexpr Pattern(const char (&pattern)[Len])#

Create a new Pattern instance from a compile-time string.

Template Parameters

Len – pattern string length.

Parameters

pattern – pattern string.

inline Pattern(const std::string_view pattern)#

Create a new Pattern instance from a string_view

Parameters

pattern – pattern string.

inline Pattern(const char *pattern, const size_t len)#

Create a new Pattern instance from a c-string and its length

Parameters
  • pattern – pattern string.

  • len – pattern string length.

Public Members

std::vector<uint8_t, AlignedAllocator<uint8_t, Alignment>> data = {}#

Pattern binary data

std::vector<uint8_t, AlignedAllocator<uint8_t, Alignment>> mask = {}#

Pattern binary data mask

size_t unpaddedSize = {}#

Unpadded pattern size

Public Static Attributes

static constexpr size_t Alignment = 32#

Memory alignment for inner data/mask elements of this pattern.

Private Static Functions

static inline uint8_t CharToByte(char symbol)#