Skip to content

@temporary-escape/mod-sdk / AbiMapStringU64

Class: AbiMapStringU64 ​

Defined in: abi.ts:273

A guest Map<string, u64> laid out as the canonical-ABI in-memory representation of list<tuple<string, u64>>: one 16-byte element per entry, a UTF-8 key (ptr: u32, len: u32) at offset 0 and the u64 value at offset 8.

ptr/len are the list's (pointer, element count) pair, borrowed by a host import for the duration of the call. The tuple buffer and the key buffers are retained so they stay alive while the host reads them.

Constructors ​

Constructor ​

ts
new AbiMapStringU64(value: Map<string, number> | null): AbiMapStringU64;

Defined in: abi.ts:280

Parameters ​

ParameterType
valueMap<string, number> | null

Returns ​

AbiMapStringU64

Properties ​

PropertyModifierTypeDefined in
lenreadonlynumberabi.ts:275
ptrreadonlynumberabi.ts:274