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

Function find_base

g2all/700/module/memtools.js:133–144  ·  view source on GitHub ↗
(addr, is_text, is_back)

Source from the content-addressed store, hash-verified

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

Callers 3

get_boundariesFunction · 0.90
dump_evalFunction · 0.90
dump_scrollLeftFunction · 0.90

Calls 3

alignFunction · 0.90
check_magic_atFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected