[**minigame-std**](../README.md)

***

[minigame-std](../README.md) / bufferSource2Ab

# Function: bufferSource2Ab()

```ts
function bufferSource2Ab(data): ArrayBuffer
```

将 BufferSource 转换为 ArrayBuffer。

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `data` | `BufferSource` | 需要转换的 BufferSource。 |

## Returns

`ArrayBuffer`

ArrayBuffer。

## Defined in

[src/std/utils/mod.ts:103](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/utils/mod.ts#L103)
