string16 top-level constant

_String const string16

Converts a string into an encoded UTF-8 list.

The length will be stored as a uint16. Therefore it has a byte length of 2 + len(value).

Usage:

payload.set(string16, 'Hello world');

Implementation

const string16 = _String(uint16);