/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_bindings/webidls/TextEncoder.webidl
20 строк
646 B
minghuaw
Update webidl files for TextEncoder and TextDecoder (#37952)
09 июл 2025, 15:42
Не верифицирован
09 июл 2025, 15:42
562d9e4
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ /* https://encoding.spec.whatwg.org/#interface-textencoder */ dictionary TextEncoderEncodeIntoResult { unsigned long long read; unsigned long long written; }; [Exposed=*] interface TextEncoder { [Throws] constructor(); [NewObject] Uint8Array encode(optional USVString input = ""); TextEncoderEncodeIntoResult encodeInto(USVString source, [AllowShared] Uint8Array destination); }; TextEncoder includes TextEncoderCommon;