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