mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
19 lines
536 B
Plaintext
19 lines
536 B
Plaintext
#import <Encoding/TextEncoderCommon.idl>
|
|
|
|
// https://encoding.spec.whatwg.org/#dictdef-textencoderencodeintoresult
|
|
dictionary TextEncoderEncodeIntoResult {
|
|
unsigned long long read;
|
|
unsigned long long written;
|
|
};
|
|
|
|
// https://encoding.spec.whatwg.org/#textencoder
|
|
[Exposed=*]
|
|
interface TextEncoder {
|
|
constructor();
|
|
|
|
[NewObject] Uint8Array encode(optional USVString input = "");
|
|
TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
|
|
};
|
|
|
|
TextEncoder includes TextEncoderCommon;
|