Encodes the given string into UTF-8 byte array. Throws if the source string has invalid UTF-16 encoding.
Returns the number of bytes required to encode the given string into UTF-8. Throws if the source string has invalid UTF-16 encoding.
Generated using TypeDoc
Decodes the given byte array from UTF-8 into a string. Throws if encoding is invalid.