@temporary-escape/mod-sdk / OptionIdStrRet
Class: OptionIdStrRet
Defined in: abi.ts:136
A canonical-ABI option<(u64, list<u8>)> return: a one-byte discriminant (0 = none, 1 = some) at the return area, followed by the u64 payload at offset 8 (the tuple's 8-byte alignment) and the (ptr, len) byte-list payload at offset 16. Used by index lookups, which return the document id together with the document.
Constructors
Constructor
ts
new OptionIdStrRet(): OptionIdStrRet;Returns
OptionIdStrRet
Properties
| Property | Type | Default value | Defined in |
|---|---|---|---|
id | number | 0 | abi.ts:138 |
len | number | 0 | abi.ts:140 |
ptr | number | 0 | abi.ts:139 |
tag | number | 0 | abi.ts:137 |
