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

Function cstr

g2all/900/module/memtools.js:247–250  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

245//
246// string to view since it's easier to get the address of the buffer this way
247export function cstr(str) {
248 str += '\0';
249 return View1.from(str, c => c.codePointAt(0));
250}
251
252// we are re-exporting this since users that want to use cstr() usually want
253// 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