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


获取对字节缓冲区进行解码所需的字符数。

```cpp
virtual int System::Text::Encoding::GetCharCount(ArrayPtr<uint8_t> bytes)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 字节 | ArrayPtr\<uint8_t\> | 待解码的字节。 |

### ReturnValue

字符数。

## 另见

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


获取对字节缓冲区进行解码所需的字符数。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 字节 | ArrayPtr\<uint8_t\> | 待解码的字节。 |
| 索引 | int | 切片起始位置。 |
| count | int | 切片大小。 |

### ReturnValue

字符数。

## 另见

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


获取对字节缓冲区进行解码所需的字符数。

```cpp
virtual int System::Text::Encoding::GetCharCount(const uint8_t *bytes, int count)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 字节 | const uint8_t * | 待解码的字节。 |
| count | int | 字节计数。 |

### ReturnValue

字符数。

## 另见

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