Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool MaskCheck(int StartOffset, const char* Mask, const BYTE* Pattern, const size_t& PatternSize)
- {
- // Senza puntatori
- for (unsigned int i=0; i<PatternSize; i++)
- {
- if (Mask[i] == 'x' && Pattern[i] != this->DumpedRegion[StartOffset + i])
- return false;
- }
- return true;
- // Con i puntatori
- for( ; *Mask; ++Mask, ++this->DumpedRegion, ++Pattern ) {
- if( *Mask == 'x' && *this->DumpedRegion != *Pattern )
- return false;
- }
- return (*Mask == NULL);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement