of

fun of(fatal: Boolean = false, ignoreBOM: Boolean = false): TextDecoder.Options

Create

Creates a new instance of the decoder options with the specified settings.

Return

The new instance.

Parameters

fatal

Whether the decoder should throw an error on invalid byte sequences.

ignoreBOM

Whether the decoder should ignore a byte order mark.