UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

28 lines (16 loc) 554 B
[**minigame-std**](../README.md) *** [minigame-std](../README.md) / bufferSource2Ab # Function: bufferSource2Ab() ```ts function bufferSource2Ab(data): ArrayBuffer ``` Defined in: [src/std/utils/mod.ts:103](https://github.com/JiangJie/minigame-std/blob/ff3594872b1efbdbc13aabe99588385e855b50dc/src/std/utils/mod.ts#L103) 将 BufferSource 转换为 ArrayBuffer。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `BufferSource` | 需要转换的 BufferSource。 | ## Returns `ArrayBuffer` ArrayBuffer。