Class: Utilities

Methods

(static) decodeData(datanullable) → {string}

Creates a string from the given buffer, auto-detecting the encoding that is being used. If it cannot detect the encoding, it will return a empty string. Supported encodings: UTF-8, UTF-16.
Parameters:
Name Type Attributes Description
data BufferSource <nullable>

(static) decodeUtf8Data(datanullable) → {string}

Creates a string from the given buffer as UTF-8 encoding.
Parameters:
Name Type Attributes Description
data BufferSource <nullable>