mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Rename PatternToBytesAndMask to PatternToMaskedBytes
This commit is contained in:
parent
98c43fd6c1
commit
374a44f29e
@ -45,7 +45,7 @@ string StringUnescape(const string& svInput);
|
||||
|
||||
vector<int> StringToBytes(const string& svInput, bool bNullTerminator);
|
||||
vector<int> PatternToBytes(const string& svInput);
|
||||
pair<vector<uint8_t>, string> PatternToBytesAndMask(const string& svInput);
|
||||
pair<vector<uint8_t>, string> PatternToMaskedBytes(const string& svInput);
|
||||
vector<int> IntToDigits(int iValue);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -110,7 +110,7 @@ CMemory CModule::FindPatternSIMD(const uint8_t* szPattern, const char* szMask) c
|
||||
//-----------------------------------------------------------------------------
|
||||
CMemory CModule::FindPatternSIMD(const string& svPattern) const
|
||||
{
|
||||
const pair patternInfo = PatternToBytesAndMask(svPattern);
|
||||
const pair patternInfo = PatternToMaskedBytes(svPattern);
|
||||
return FindPatternSIMD(patternInfo.first.data(), patternInfo.second.c_str());
|
||||
}
|
||||
|
||||
|
@ -664,10 +664,9 @@ vector<int> PatternToBytes(const string& svInput)
|
||||
return vBytes;
|
||||
};
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// For converting a string pattern with wildcards to an array of bytes and mask.
|
||||
pair<vector<uint8_t>, string> PatternToBytesAndMask(const string& svInput)
|
||||
pair<vector<uint8_t>, string> PatternToMaskedBytes(const string& svInput)
|
||||
{
|
||||
char* pszPatternStart = const_cast<char*>(svInput.c_str());
|
||||
char* pszPatternEnd = pszPatternStart + strlen(svInput.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user