Skip to content

@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 ​

PropertyTypeDefault valueDefined in
idnumber0abi.ts:138
lennumber0abi.ts:140
ptrnumber0abi.ts:139
tagnumber0abi.ts:137