Constants§
Statics§
- PERF_TS 🔒
Functions§
- atob 🔒
- base64_
to_ 🔒bytes - base64 文字列をバイト列へデコードする共通処理(
atob/Uint8Array.fromBase64で共有)。 未知の文字(改行等)は無視する簡略実装。 - btoa 🔒
- bytes_
to_ 🔒base64 - バイト列を base64 文字列へエンコードする共通処理(
btoa/Uint8Array.prototype.toBase64で共有)。 - bytes_
to_ 🔒hex - バイト列を小文字16進文字列へエンコードする(
Uint8Array.prototype.toHex)。 - hex_
to_ 🔒bytes - 16進文字列をバイト列へデコードする(
Uint8Array.fromHex)。奇数長や不正文字はNone。 - js_
decode_ 🔒uri - js_
decode_ 🔒uri_ component - js_
encode_ 🔒uri - js_
encode_ 🔒uri_ component - js_
escape 🔒 escape(str)(Annex B.2.1.1。ES6 で非推奨だがencodeURI系登場以前からの 遺産として実務コードになお残る)が丸ごと未対応だった。仕様は UTF-16 コード単位ベースだが、この処理系の文字列は UTF-8(RustString)のため Unicode スカラー値(char)単位で近似する(BMP 外文字のサロゲートペア 分割は考慮しない、他の Unicode 境界処理と同水準の簡略化)。- js_
unescape 🔒 unescape(str)(Annex B.2.1.2)。escapeの逆変換。%XX/%uXXXXを復元し、 どちらの形にも一致しない%はそのまま素通しする(仕様どおり)。- make_
perf_ 🔒entry - next_
perf_ timestamp performance.now()と同じ単調増加カウンタ(実クロックが無いこの環境の 簡略近似)。Event.timeStamp(イベント生成時刻)にも同じ発生源を使う。- next_
rand_ 🔒u64 - percent_
decode 🔒 %XXを1バイトへ復元する共通デコーダ。plus_as_spaceが true の場合のみ+を空白として扱う(form-urlencoded 用。encodeURIComponent 系では false)。- percent_
encode_ 🔒component encodeURIComponent相当。未エスケープ文字は RFC3986 unreserved +!'()*。- percent_
encode_ 🔒uri encodeURI相当。encodeURIComponent の非エスケープ集合に加え、URI 予約文字 (;/?:@&=+$,#) も未エスケープのまま残す(コンポーネントではなくURI全体用のため)。- perf_
clear_ 🔒by_ type - perf_
clear_ 🔒marks - perf_
clear_ 🔒measures - perf_
entries 🔒 - perf_
find_ 🔒mark_ time - perf_
get_ 🔒entries - perf_
get_ 🔒entries_ by_ name - perf_
get_ 🔒entries_ by_ type - perf_
mark 🔒 performance.mark(name)。呼び出し時点のperformance.now()をstartTimeとして持つPerformanceMarkエントリを記録して返す。- perf_
measure 🔒 performance.measure(name, startMark?, endMark?)。マーク名はperformance.mark()で記録済みのエントリからstartTimeを引く (未指定/未発見の開始マークは時刻 0、終了マークは現在時刻扱い)。- perf_
notify_ 🔒observers new PerformanceObserver(callback)が観測中のエントリ種別(observe ({entryTypes:[...]}))に一致する新規エントリをperformance.mark/.measureの記録直後に同期的に通知する(仕様上のマイクロタスク経由の 非同期バッチ通知は簡略化し、エントリ1件ごとに即時コールバックする)。- perf_
observer_ 🔒list_ get_ entries - perf_
push_ 🔒entry - performance_
now 🔒 - performance_
observer_ 🔒ctor new PerformanceObserver(callback)(丸ごと未対応だった)。- performance_
observer_ 🔒disconnect observer.disconnect()。performance._observersから自身を取り除く。- performance_
observer_ 🔒observe observer.observe({entryTypes: [...]})(複数種別・buffered非対応の 従来形式)。監視対象の種別を記録し、performance._observersへ自身を 登録する(同一インスタンスの重複登録は無視する)。- ta_
from_ 🔒base64 Uint8Array.fromBase64(str)(ES2024/2025 静的メソッド)。- ta_
from_ 🔒hex Uint8Array.fromHex(str)(ES2024/2025 静的メソッド)。不正な16進文字列は例外を投げる。- ta_
set_ 🔒from_ base64 Uint8Array.prototype.setFromBase64(str)(ES2024/2025)。- ta_
set_ 🔒from_ hex Uint8Array.prototype.setFromHex(str)(ES2024/2025)。不正な16進文字列は例外を投げる。- ta_
to_ 🔒base64 Uint8Array.prototype.toBase64()(ES2024/2025)。- ta_
to_ 🔒bytes - TypedArray インスタンスの要素を u8 バイト列として取り出す(Uint8Array 専用機能で使用)。
- ta_
to_ 🔒hex Uint8Array.prototype.toHex()(ES2024/2025)。- ta_
write_ 🔒bytes_ into - デコードしたバイト列を既存の
this(Uint8Array)の先頭から上書きし、{ read, written }(readは入力文字列の消費文字数、writtenは書き込んだ バイト数)を返す共通処理。setFromBase64/setFromHexで共有する。toBase64/toHex(読み取り)とfromBase64/fromHex(新規生成)は 実装済みだったが、既存バッファへインプレースで書き込む対になるsetFromBase64/setFromHex(ES2024/2025)が丸ごと未対応だった。