(str)
| 216 | // |
| 217 | // string to view since it's easier to get the address of the buffer this way |
| 218 | export 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 |