2023-10-06 02:03:44 -03:00
|
|
|
// https://encoding.spec.whatwg.org/#dictdef-textencoderencodeintoresult
|
|
|
|
|
dictionary TextEncoderEncodeIntoResult {
|
2026-05-24 10:17:18 -03:00
|
|
|
unsigned long long read;
|
|
|
|
|
unsigned long long written;
|
2023-10-06 02:03:44 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// https://encoding.spec.whatwg.org/#textencoder
|
|
|
|
|
[Exposed=*]
|
2021-12-12 15:03:22 -03:00
|
|
|
interface TextEncoder {
|
|
|
|
|
constructor();
|
|
|
|
|
|
2021-12-12 15:05:11 -03:00
|
|
|
[NewObject] Uint8Array encode(optional USVString input = "");
|
2023-10-06 02:03:44 -03:00
|
|
|
TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
|
2021-12-12 15:03:22 -03:00
|
|
|
};
|
2025-02-07 09:40:26 -03:00
|
|
|
|
2023-10-06 02:03:44 -03:00
|
|
|
TextEncoder includes TextEncoderCommon;
|