Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>TextEncoder

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface TextEncoder
implements TextEncoderCommon
import { type TextEncoder } from "https://deno.land/x/windmill@v1.298.0/node_modules/evt/lib/types/lib.dom.d.ts";

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.

Methods

encode(input?: string): Uint8Array

Returns the result of running UTF-8's encoder.

encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult

Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as a dictionary whereby read is the number of converted code units of source and written is the number of bytes modified in destination.