aboutsummaryrefslogtreecommitdiff
path: root/primedev/thirdparty/silver-bun/utils.h
blob: 15e43a9293e114c1e630b1d5d9de76325e1c6b63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <iostream>
#include <string>
#include <vector>
#include <windows.h>
#include <psapi.h>

namespace Utils
{
	std::vector<uint8_t> StringPatternToBytes(const char* szInput);
    std::vector<int> PatternToBytes(const char* szInput);
    std::pair<std::vector<uint8_t>, std::string> PatternToMaskedBytes(const char* szInput);
    std::vector<int> StringToBytes(const char* szInput, bool bNullTerminator);
    std::pair<std::vector<uint8_t>, std::string> StringToMaskedBytes(const char* szInput, bool bNullTerminator);
}

typedef const unsigned char* rsig_t;