Package-level declarations

Types

Link copied to clipboard
external interface TextDecodeOptions
Link copied to clipboard
external class TextDecoder(label: String = definedExternally, options: TextDecoderOptions = definedExternally) : TextDecoderCommon

A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.

Link copied to clipboard
sealed external interface TextDecoderCommon
Link copied to clipboard
external interface TextDecoderOptions
Link copied to clipboard
external class TextDecoderStream(label: String = definedExternally, options: TextDecoderOptions = definedExternally) : GenericTransformStream, TextDecoderCommon
Link copied to clipboard
open external class TextEncoder : TextEncoderCommon

TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.

Link copied to clipboard
sealed external interface TextEncoderCommon
Link copied to clipboard
external interface TextEncoderEncodeIntoResult

Functions

Link copied to clipboard
external fun atob(data: String): String
Link copied to clipboard
external fun btoa(data: String): String