@temporary-escape/mod-sdk / writeStrRet
Function: writeStrRet()
ts
function writeStrRet(retPtr: number, value: string): void;Defined in: abi.ts:249
Writes a guest-owned UTF-8 string into a canonical-ABI return area. The backing bytes are allocated with heap.alloc (not GC-managed) so they remain valid after the callback returns; ownership transfers to the host, which frees them after reading.
Parameters
| Parameter | Type |
|---|---|
retPtr | number |
value | string |
Returns
void
