Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
open 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 interface TextDecoderCommon
Link copied to clipboard
Link copied to clipboard
open class TextDecoderStream(    label: String = definedExternally,     options: TextDecoderOptions = definedExternally) : GenericTransformStream, TextDecoderCommon
Link copied to clipboard

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 interface TextEncoderCommon
Link copied to clipboard

Functions

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