## Encoding::GetMaxByteCount method


获取对指定字符数进行编码所需的最大字节数。

```cpp
virtual int System::Text::Encoding::GetMaxByteCount(int char_count)=0
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| char_count | int | 要编码的字符数。 |

### ReturnValue

足以编码任意给定字符长度字符串的字节数。

## 另见

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