Pattern16 icon indicating copy to clipboard operation
Pattern16 copied to clipboard

Single byte signatures won't work at all

Open szaaamerik opened this issue 1 year ago • 1 comments

Code snippet I've used:

const std::span<uint8_t>& body;
// ...
const auto scanResult = Pattern16::scan(body.data(), body.size(), "C3");
const auto scanOffset = static_cast<uint8_t*>(const_cast<void*>(scanResult)) - body.data();
if (scanOffset == 0) {
    return -1; // hit EVERY single time..
}
return scanOffset;

szaaamerik avatar Dec 01 '24 16:12 szaaamerik

L I can run it perfectly, thanks to Dasaav for his hard work

HOHOD20XX avatar Dec 23 '24 11:12 HOHOD20XX