@temporary-escape/mod-sdk / OptionStrRet
Class: OptionStrRet
Defined in: abi.ts:108
A canonical-ABI option<list<u8>> / option<string> return: a one-byte discriminant (0 = none, 1 = some) at the return area, followed by the (ptr, len) payload aligned to 4. Absence is the discriminant — an empty (present) value is distinct from none.
Constructors
Constructor
ts
new OptionStrRet(): OptionStrRet;Returns
OptionStrRet
Properties
| Property | Type | Default value | Defined in |
|---|---|---|---|
len | number | 0 | abi.ts:111 |
ptr | number | 0 | abi.ts:110 |
tag | number | 0 | abi.ts:109 |
