[**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/ff3594872b1efbdbc13aabe99588385e855b50dc/src/std/codec/mod.ts#L23)

将二进制数据解码为字符串。

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `data` | `BufferSource` | 需要解码的二进制数据。 |

## Returns

`string`

解码后的字符串。
