decode method

String decode([
  1. AllowSharedBufferSource input,
  2. TextDecodeOptions options
])

The TextDecoder.decode() method returns a string containing text decoded from the buffer passed as a parameter.

The decoding method is defined in the current TextDecoder object. This includes the expected encoding of the data, and how decoding errors are handled.

Implementation

external String decode([
  AllowSharedBufferSource input,
  TextDecodeOptions options,
]);