gecko-dev/testing/web-platform/tests/interfaces/encoding.idl
autofoolip 9c1f1adaaf Bug 1588023 [wpt PR 19635] - Update interfaces/encoding.idl, a=testonly
Automatic update from web-platform-tests
Update interfaces/encoding.idl (#19635)

Source: https://github.com/tidoust/reffy-reports/blob/f90a836/ed/idl/encoding.idl
Build: https://travis-ci.org/tidoust/reffy-reports/builds/596457801
--

wpt-commits: 590dfa9ae4700457d62a52d174d85e94680846a3
wpt-pr: 19635
2019-10-24 18:03:24 +01:00

64 lines
1.8 KiB
Text

// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Encoding Standard (https://encoding.spec.whatwg.org/)
interface mixin TextDecoderCommon {
readonly attribute DOMString encoding;
readonly attribute boolean fatal;
readonly attribute boolean ignoreBOM;
};
dictionary TextDecoderOptions {
boolean fatal = false;
boolean ignoreBOM = false;
};
dictionary TextDecodeOptions {
boolean stream = false;
};
[Exposed=(Window,Worker)]
interface TextDecoder {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
USVString decode(optional [AllowShared] BufferSource input, optional TextDecodeOptions options = {});
};
TextDecoder includes TextDecoderCommon;
interface mixin TextEncoderCommon {
readonly attribute DOMString encoding;
};
dictionary TextEncoderEncodeIntoResult {
unsigned long long read;
unsigned long long written;
};
[Exposed=(Window,Worker)]
interface TextEncoder {
constructor();
[NewObject] Uint8Array encode(optional USVString input = "");
TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
};
TextEncoder includes TextEncoderCommon;
interface mixin GenericTransformStream {
readonly attribute ReadableStream readable;
readonly attribute WritableStream writable;
};
[Exposed=(Window,Worker)]
interface TextDecoderStream {
constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
};
TextDecoderStream includes TextDecoderCommon;
TextDecoderStream includes GenericTransformStream;
[Exposed=(Window,Worker)]
interface TextEncoderStream {
constructor();
};
TextEncoderStream includes TextEncoderCommon;
TextEncoderStream includes GenericTransformStream;