UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

28 lines (16 loc) 541 B
[**minigame-std**](../README.md) *** [minigame-std](../README.md) / textEncode # Function: textEncode() ```ts function textEncode(data): Uint8Array ``` Defined in: [src/std/codec/mod.ts:12](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/codec/mod.ts#L12) 将字符串数据编码为 `Uint8Array` ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `data` | `string` | 需要编码的字符串数据。 | ## Returns `Uint8Array` 编码后的 `Uint8Array`