@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
| Parameter | Type |
|---|---|
value | string |
Returns
Utf8String
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
buffer | readonly | ArrayBuffer | abi.ts:169 |
len | readonly | number | abi.ts:167 |
ptr | readonly | number | abi.ts:166 |
