• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// GENERATED CONTENT - DO NOT EDIT
2// Content was automatically extracted by Reffy into reffy-reports
3// (https://github.com/tidoust/reffy-reports)
4// Source: Encoding Standard (https://encoding.spec.whatwg.org/)
5
6interface mixin TextDecoderCommon {
7  readonly attribute DOMString encoding;
8  readonly attribute boolean fatal;
9  readonly attribute boolean ignoreBOM;
10};
11
12dictionary TextDecoderOptions {
13  boolean fatal = false;
14  boolean ignoreBOM = false;
15};
16
17dictionary TextDecodeOptions {
18  boolean stream = false;
19};
20
21[Exposed=(Window,Worker)]
22interface TextDecoder {
23  constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
24
25  USVString decode(optional [AllowShared] BufferSource input, optional TextDecodeOptions options = {});
26};
27TextDecoder includes TextDecoderCommon;
28
29interface mixin TextEncoderCommon {
30  readonly attribute DOMString encoding;
31};
32
33dictionary TextEncoderEncodeIntoResult {
34  unsigned long long read;
35  unsigned long long written;
36};
37
38[Exposed=(Window,Worker)]
39interface TextEncoder {
40  constructor();
41
42  [NewObject] Uint8Array encode(optional USVString input = "");
43  TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
44};
45TextEncoder includes TextEncoderCommon;
46
47interface mixin GenericTransformStream {
48  readonly attribute ReadableStream readable;
49  readonly attribute WritableStream writable;
50};
51
52[Exposed=(Window,Worker)]
53interface TextDecoderStream {
54  constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
55};
56TextDecoderStream includes TextDecoderCommon;
57TextDecoderStream includes GenericTransformStream;
58
59[Exposed=(Window,Worker)]
60interface TextEncoderStream {
61  constructor();
62};
63TextEncoderStream includes TextEncoderCommon;
64TextEncoderStream includes GenericTransformStream;
65