Skip to content

@temporary-escape/mod-sdk / readStrList

Function: readStrList() ​

ts
function readStrList(ptr: number, len: number): string[];

Defined in: abi.ts:217

Reads a canonical-ABI list<string> that the host lowered into guest memory. The host transfers ownership, so the element buffers and the element array are released here. An empty (present) list/string is a non-null dangling pointer with len == 0; those must not be freed.

Parameters ​

ParameterType
ptrnumber
lennumber

Returns ​

string[]