Skip to content

Single byte signatures won't work at all #7

Description

@szaaamerik

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions