minigame-std
Version:
Mini Game Standard Development Library.
28 lines (16 loc) • 537 B
Markdown
[**minigame-std**](../README.md)
***
[minigame-std](../README.md) / textDecode
# Function: textDecode()
```ts
function textDecode(data): string
```
Defined in: [src/std/codec/mod.ts:23](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/codec/mod.ts#L23)
将二进制数据解码为字符串。
## Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `data` | `BufferSource` | 需要解码的二进制数据。 |
## Returns
`string`
解码后的字符串。