Reads a null-terminated UTF-8 string from the WebAssembly memory.
Remarks
This function only reads the string; it does not free the pointer. The caller is
responsible for managing the memory of the C string if it was dynamically allocated.
readStringFromMemory(ptr:number):string
Parameters
ptr: number
The pointer to the beginning of the string in Wasm memory.
Reads a null-terminated UTF-8 string from the WebAssembly memory.
Remarks
This function only reads the string; it does not free the pointer. The caller is responsible for managing the memory of the C string if it was dynamically allocated.