Skip to content

@temporary-escape/mod-sdk / Utf8String

Class: Utf8String ​

Defined in: abi.ts:165

A UTF-8 encoded copy of an AssemblyScript string. The backing buffer is retained so its (dataStart, length) pair can be borrowed by a host import for the duration of the call; the object can be released once the call returns.

Constructors ​

Constructor ​

ts
new Utf8String(value: string): Utf8String;

Defined in: abi.ts:171

Parameters ​

ParameterType
valuestring

Returns ​

Utf8String

Properties ​

PropertyModifierTypeDefined in
bufferreadonlyArrayBufferabi.ts:169
lenreadonlynumberabi.ts:167
ptrreadonlynumberabi.ts:166