tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

encoding.idl (1617B)


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