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

Function get_view_vector

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

Source from the content-addressed store, hash-verified

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

Callers 7

constructorMethod · 0.90
constructorMethod · 0.90
runMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
runMethod · 0.90
constructorMethod · 0.90

Calls 2

readpMethod · 0.45
addrofMethod · 0.45

Tested by

no test coverage detected