Skip to content

Truly independent web browser

514 B
Raw Blame
// https://encoding.spec.whatwg.org/#dictdef-textencoderencodeintoresult
dictionary TextEncoderEncodeIntoResult {
    unsigned long long read;
    unsigned long long written;
};

// https://encoding.spec.whatwg.org/#textencoder
[Exposed=*, ImplementedIn=Rust]
interface TextEncoder {
    constructor();

    [NewObject] Uint8Array encode(optional USVString input = "");
    TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination);
};

TextEncoder includes TextEncoderCommon;