ladybird/Libraries/LibWeb/Encoding/TextEncoder.idl
Shannon Booth df6c3fcfaa LibWeb/Bindings: Remove GenerateAsRequired handling from IDL generator
This was used before we generated dictionary definitions using the IDL
generator, and no longer serves the purpose it used to.
2026-05-26 21:43:57 +02:00

16 lines
494 B
Text

// 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;