Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

linkSpeedBps

ソース

APIの説明は英語のcanonical sourceを表示しています。

Resolve a link's nominal speed (bits/sec). Reads per-endpoint module standards (the canonical source) and falls back to runtime `rateBps` when neither end has a module set. For symmetric links both endpoints return the same speed; for asymmetric links (BiDi etc.) we pick the lower of the two (conservative for utilization math).

linkSpeedBps(link: Link | null | undefined): number | undefined

パラメーター

名前 説明 既定値
link Link | null | undefined 追加説明はありません。

戻り値

number | undefined

libs/@shumoku/core/src/layout/link-utils.ts:73