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

Function cstr

g2all/700/module/memtools.js:218–221  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

216//
217// string to view since it's easier to get the address of the buffer this way
218export function cstr(str) {
219 str += "\0";
220 return View1.from(str, (c) => c.codePointAt(0));
221}
222
223// we are re-exporting this since users that want to use cstr() usually want
224// jstr() as well. they are likely working with functions that take/return

Callers 1

new_evfFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected