# resolveBandwidthBps

Canonical: https://docs.shumoku.dev/ja/library/api/resolveBandwidthBps
Language: ja

@shumoku/core · 0.4.0 · function

# resolveBandwidthBps

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/link-utils.ts#L33)

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

Parse a bandwidth string ("10G", "2.5Gbps", "500M") or raw bps number into bits/sec. Pure utility — used by plugin configs that accept user-typed bandwidth values; not tied to Link semantics.

```
resolveBandwidthBps(bw: LinkBandwidth | null | undefined): number | undefined
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `bw` | `LinkBandwidth | null | undefined` | 追加説明はありません。 | `—` |

## 戻り値

```
number | undefined
```

[`libs/@shumoku/core/src/layout/link-utils.ts:33`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/link-utils.ts#L33)
