11cb0ef41Sopenharmony_ci// GENERATED CONTENT - DO NOT EDIT
21cb0ef41Sopenharmony_ci// Content was automatically extracted by Reffy into webref
31cb0ef41Sopenharmony_ci// (https://github.com/w3c/webref)
41cb0ef41Sopenharmony_ci// Source: Encoding Standard (https://encoding.spec.whatwg.org/)
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ciinterface mixin TextDecoderCommon {
71cb0ef41Sopenharmony_ci  readonly attribute DOMString encoding;
81cb0ef41Sopenharmony_ci  readonly attribute boolean fatal;
91cb0ef41Sopenharmony_ci  readonly attribute boolean ignoreBOM;
101cb0ef41Sopenharmony_ci};
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_cidictionary TextDecoderOptions {
131cb0ef41Sopenharmony_ci  boolean fatal = false;
141cb0ef41Sopenharmony_ci  boolean ignoreBOM = false;
151cb0ef41Sopenharmony_ci};
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_cidictionary TextDecodeOptions {
181cb0ef41Sopenharmony_ci  boolean stream = false;
191cb0ef41Sopenharmony_ci};
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_ci[Exposed=(Window,Worker)]
221cb0ef41Sopenharmony_ciinterface TextDecoder {
231cb0ef41Sopenharmony_ci  constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
241cb0ef41Sopenharmony_ci
251cb0ef41Sopenharmony_ci  USVString decode(optional [AllowShared] BufferSource input, optional TextDecodeOptions options = {});
261cb0ef41Sopenharmony_ci};
271cb0ef41Sopenharmony_ciTextDecoder includes TextDecoderCommon;
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_ciinterface mixin TextEncoderCommon {
301cb0ef41Sopenharmony_ci  readonly attribute DOMString encoding;
311cb0ef41Sopenharmony_ci};
321cb0ef41Sopenharmony_ci
331cb0ef41Sopenharmony_cidictionary TextEncoderEncodeIntoResult {
341cb0ef41Sopenharmony_ci  unsigned long long read;
351cb0ef41Sopenharmony_ci  unsigned long long written;
361cb0ef41Sopenharmony_ci};
371cb0ef41Sopenharmony_ci
381cb0ef41Sopenharmony_ci[Exposed=(Window,Worker)]
391cb0ef41Sopenharmony_ciinterface TextEncoder {
401cb0ef41Sopenharmony_ci  constructor();
411cb0ef41Sopenharmony_ci
421cb0ef41Sopenharmony_ci  [NewObject] Uint8Array encode(optional USVString input = "");
431cb0ef41Sopenharmony_ci  TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
441cb0ef41Sopenharmony_ci};
451cb0ef41Sopenharmony_ciTextEncoder includes TextEncoderCommon;
461cb0ef41Sopenharmony_ci
471cb0ef41Sopenharmony_ci[Exposed=(Window,Worker)]
481cb0ef41Sopenharmony_ciinterface TextDecoderStream {
491cb0ef41Sopenharmony_ci  constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
501cb0ef41Sopenharmony_ci};
511cb0ef41Sopenharmony_ciTextDecoderStream includes TextDecoderCommon;
521cb0ef41Sopenharmony_ciTextDecoderStream includes GenericTransformStream;
531cb0ef41Sopenharmony_ci
541cb0ef41Sopenharmony_ci[Exposed=(Window,Worker)]
551cb0ef41Sopenharmony_ciinterface TextEncoderStream {
561cb0ef41Sopenharmony_ci  constructor();
571cb0ef41Sopenharmony_ci};
581cb0ef41Sopenharmony_ciTextEncoderStream includes TextEncoderCommon;
591cb0ef41Sopenharmony_ciTextEncoderStream includes GenericTransformStream;
60