MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / find_base

Function find_base

g2all/900/module/memtools.js:138–149  ·  view source on GitHub ↗
(addr, is_text, is_back)

Source from the content-addressed store, hash-verified

136// addr.read8(-1);
137//
138export function find_base(addr, is_text, is_back) {
139 // align to page size
140 addr = align(addr, page_size);
141 const offset = (is_back ? -1 : 1) * page_size;
142 while (true) {
143 if (check_magic_at(addr, is_text)) {
144 break;
145 }
146 addr = addr.add(offset);
147 }
148 return addr;
149}
150
151// gets the address of the underlying buffer of a JSC::JSArrayBufferView
152export function get_view_vector(view) {

Callers 5

get_boundariesFunction · 0.90
dump_evalFunction · 0.90
dump_scrollLeftFunction · 0.90
get_basesFunction · 0.90
get_basesFunction · 0.90

Calls 3

alignFunction · 0.90
check_magic_atFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected