cstrToJs

abstract fun cstrToJs(ptr: WasmPointer): JsString?(source)

Expects its argument to be a pointer into the WASM heap memory which refers to a NUL-terminated C-style string encoded as UTF-8.

This function counts its byte length using cstrlen() then returns a JS-format string representing its contents. As a special case, if the argument is falsy, null is returned.