encoding

package
v0.0.0-...-659b40f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TextDecoder

type TextDecoder struct{}

TextDecoder a decoder for a specific text encoding, such as UTF-8, ISO-8859-2, KOI8-R, GBK, etc. A decoder takes a stream of bytes as input and emits a stream of code points. https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder

func (*TextDecoder) Instantiate

func (t *TextDecoder) Instantiate(rt *sobek.Runtime) (sobek.Value, error)

type TextEncoder

type TextEncoder struct{}

TextEncoder takes a stream of code points as input and emits a stream of UTF-8 bytes. https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder

func (*TextEncoder) Instantiate

func (t *TextEncoder) Instantiate(rt *sobek.Runtime) (sobek.Value, error)

Instantiate module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL