## Encoding::GetMaxByteCount method


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

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| char_count | int | 要编码的字符数。 |

### ReturnValue

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

## 另见

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