UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

30 lines (17 loc) 570 B
[**minigame-std**](../README.md) *** [minigame-std](../README.md) / base64ToBuffer # Function: base64ToBuffer() ```ts function base64ToBuffer(data): Uint8Array ``` Converts a base64 encoded string to an Uint8Array ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `string` | Base64 encoded string | ## Returns `Uint8Array` The decoded data as an Uint8Array. ## Defined in [src/std/base64/base64.ts:86](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/base64/base64.ts#L86)