Implements isomorphic decode.
Given a TypedArray or an ArrayBuffer instance input, creates a string of the same length as input byteLength, using bytes from input as codepoints.
TypedArray
ArrayBuffer
input
E.g. for Uint8Array input, this is similar to String.fromCodePoint(...input).
Uint8Array
String.fromCodePoint(...input)
Wider TypedArray inputs, e.g. Uint16Array, are interpreted as underlying bytes.
Uint16Array
The bytes to decode
The decoded string
Implements isomorphic decode.
Given a
TypedArrayor anArrayBufferinstanceinput, creates a string of the same length as input byteLength, using bytes from input as codepoints.E.g. for
Uint8Arrayinput, this is similar toString.fromCodePoint(...input).Wider
TypedArrayinputs, e.g.Uint16Array, are interpreted as underlying bytes.