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

Function get_view_vector

g2all/700/module/memtools.js:147–152  ·  view source on GitHub ↗
(view)

Source from the content-addressed store, hash-verified

145
146// gets the address of the underlying buffer of a JSC::JSArrayBufferView
147export function get_view_vector(view) {
148 if (!ArrayBuffer.isView(view)) {
149 throw TypeError(`object not a JSC::JSArrayBufferView: ${view}`);
150 }
151 return mem.addrof(view).readp(off.view_m_vector);
152}
153
154export function resolve_import(import_addr) {
155 if (import_addr.read16(0) !== 0x25ff) {

Callers 5

initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
constructorMethod · 0.90

Calls 2

readpMethod · 0.45
addrofMethod · 0.45

Tested by

no test coverage detected