uint16ToUtf8

Function converts a byte array encoded in uint16 to utf8. Each byte is encoded in utf8 as follows:

  • 0xxxxxxx - 1 byte (0xxxxxxx in uint16)

  • 110yyyyy 10xxxxxx - 2 bytes (00000yyy yyxxxxxx in uint16)

  • 1110zzzz 10yyyyyy 10xxxxxx - 3 bytes (zzzzyyyy yyxxxxxx in uint16)

Return

Byte Array - utf8 representation of the uint16 array.