## Encoding::GetChars(ArrayPtr\<uint8_t\>) method


获取对字节缓冲区进行解码后产生的字符。

```cpp
virtual ArrayPtr<char_t> System::Text::Encoding::GetChars(ArrayPtr<uint8_t> bytes)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| bytes | ArrayPtr\<uint8_t\> | [Buffer](../../../system/buffer/) 用于读取字节。 |

### ReturnValue

[Buffer](../../../system/buffer/) of decoded characters.

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Encoding](../)
* Namespace [System::Text](../../)
* Library [Aspose.Font for C++](../../../)
## Encoding::GetChars(ArrayPtr\<uint8_t\>, int, int, ArrayPtr\<char_t\>, int) method


获取对字节缓冲区进行解码后产生的字符。

```cpp
virtual int System::Text::Encoding::GetChars(ArrayPtr<uint8_t> bytes, int byte_index, int byte_count, ArrayPtr<char_t> chars, int char_index)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| bytes | ArrayPtr\<uint8_t\> | [Buffer](../../../system/buffer/) 用于读取字节。 |
| byte_index | int | 输入缓冲区偏移量。 |
| byte_count | int | 输入缓冲区大小。 |
| chars | ArrayPtr\<char_t\> | [Buffer](../../../system/buffer/) 用于放置字符。 |
| char_index | int | 输出缓冲区偏移量。 |

### ReturnValue

写入的字符数。

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Encoding](../)
* Namespace [System::Text](../../)
* Library [Aspose.Font for C++](../../../)
## Encoding::GetChars(ArrayPtr\<uint8_t\>, int, int) method


获取对字节缓冲区进行解码后产生的字符。

```cpp
virtual ArrayPtr<char_t> System::Text::Encoding::GetChars(ArrayPtr<uint8_t> bytes, int index, int count)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| bytes | ArrayPtr\<uint8_t\> | [Buffer](../../../system/buffer/) 用于读取字节。 |
| 索引 | int | 输入缓冲区偏移量。 |
| count | int | 输入缓冲区大小。 |

### ReturnValue

[Buffer](../../../system/buffer/) of decoded characters.

## 另见

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Encoding](../)
* Namespace [System::Text](../../)
* Library [Aspose.Font for C++](../../../)
## Encoding::GetChars(const uint8_t *, int, char_t *, int) method


获取对字节缓冲区进行解码后产生的字符。

```cpp
virtual int System::Text::Encoding::GetChars(const uint8_t *bytes, int byte_count, char_t *chars, int char_count)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| bytes | const uint8_t * | [Buffer](../../../system/buffer/) 用于读取字节。 |
| byte_count | int | 输入缓冲区大小。 |
| chars | char_t * | [Buffer](../../../system/buffer/) 用于放置字符。 |
| char_count | int | 输出缓冲区大小。 |

### ReturnValue

写入的字符数。

## 另见

* Class [Encoding](../)
* Namespace [System::Text](../../)
* Library [Aspose.Font for C++](../../../)
