MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / scan_memory_bytes

Function scan_memory_bytes

core/src/utils/dylib.cc:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static void *scan_memory_bytes(void *data, size_t length, const std::vector<int> &find_bytes)
77{
78 auto image_start = (uint8_t *)data;
79 auto image_end = image_start + length;
80
81 auto occurrence = std::search(image_start, image_end, find_bytes.begin(), find_bytes.end());
82 return (occurrence != image_end) ? occurrence : nullptr;
83}
84
85static void *get_base_address(const void *rladdr)
86{

Callers 1

find_memoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected