This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/BigBaseV2/src/memory/pattern.hpp
2019-06-23 22:00:18 +02:00

26 lines
475 B
C++

#pragma once
#include <cstdint>
#include <optional>
#include <string_view>
#include <vector>
#include "fwddec.hpp"
#include "handle.hpp"
namespace memory
{
class pattern
{
friend pattern_batch;
friend range;
public:
pattern(std::string_view ida_sig);
explicit pattern(const void *bytes, std::string_view mask);
inline pattern(const char* ida_sig) :
pattern(std::string_view(ida_sig))
{}
private:
std::vector<std::optional<std::uint8_t>> m_bytes;
};
}