System::Text::ICUEncoder::Convert 方法
内容
[
隐藏
]ICUEncoder::Convert(ArrayPtr<char_t>, int, int, ArrayPtr<uint8_t>, int, int, bool, int&, int&, bool&) method
将字符转换为字节。
virtual void System::Text::ICUEncoder::Convert(ArrayPtr<char_t> chars, int charIndex, int charCount, ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
| Parameter | Type | 描述 |
|---|---|---|
| chars | ArrayPtr<char_t> | 要编码的字符。 |
| charIndex | int | 输入缓冲区偏移量。 |
| charCount | int | 输入缓冲区大小。 |
| 字节 | ArrayPtr<uint8_t> | 目标字节缓冲区。 |
| byteIndex | int | 目标数组偏移量。 |
| byteCount | int | 目标数组大小。 |
| flush | bool | 如果为 true,则在计算后清除内部编码器状态。 |
| charsUsed | int& | 引用变量以存储读取的字符数。 |
| bytesUsed | int& | 引用变量以存储写入的字节数。 |
| completed | bool& | 引用变量,如果输入缓冲区已耗尽则设为 true,否则设为 false。 |
另见
- Typedef ArrayPtr
- Class ICUEncoder
- Namespace System::Text
- Library Aspose.Page for C++
ICUEncoder::Convert(const char_t *, int, uint8_t *, int, bool, int&, int&, bool&) method
将字符转换为字节。
virtual void System::Text::ICUEncoder::Convert(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
| Parameter | Type | 描述 |
|---|---|---|
| chars | const char_t * | 要编码的字符。 |
| charCount | int | 输入缓冲区大小。 |
| 字节 | uint8_t * | 目标字节缓冲区。 |
| byteCount | int | 目标数组大小。 |
| flush | bool | 如果为 true,则在计算后清除内部编码器状态。 |
| charsUsed | int& | 引用变量以存储读取的字符数。 |
| bytesUsed | int& | 引用变量以存储写入的字节数。 |
| completed | bool& | 引用变量,如果输入缓冲区已耗尽则设为 true,否则设为 false。 |
另见
- Class ICUEncoder
- Namespace System::Text
- Library Aspose.Page for C++