• input {ArrayBuffer|DataView|TypedArray} An ArrayBuffer, DataView or TypedArray instance containing the encoded data.
    • options {Object}
      • stream {boolean} true if additional chunks of data are expected. Default: false.
    • Returns: {string}

    Decodes the input and returns a string. If options.stream is true, any incomplete byte sequences occurring at the end of the input are buffered internally and emitted after the next call to textDecoder.decode().

    If textDecoder.fatal is true, decoding errors that occur will result in a TypeError being thrown.