System::Text::ICUDecoder::GetCharCount 方法

ICUDecoder::GetCharCount(ArrayPtr<uint8_t>, int, int) method

获取解码缓冲区所需的字符数。

virtual int System::Text::ICUDecoder::GetCharCount(ArrayPtr<uint8_t> bytes, int index, int count)
参数类型描述
字节ArrayPtr<uint8_t>待解码的字节。
indexintBuffer 偏移。
countint要解码的字节数。

ReturnValue

解码缓冲区所需的字符数。

另见

ICUDecoder::GetCharCount(ArrayPtr<uint8_t>, int, int, bool) method

获取解码缓冲区所需的字符数。

virtual int System::Text::ICUDecoder::GetCharCount(ArrayPtr<uint8_t> bytes, int index, int count, bool flush)
参数类型描述
字节ArrayPtr<uint8_t>待解码的字节。
indexintBuffer 偏移。
countint要解码的字节数。
flushbool如果为 true,则在计算后清除内部解码器状态。

ReturnValue

解码缓冲区所需的字符数。

另见

ICUDecoder::GetCharCount(const uint8_t *, int, bool) method

获取解码缓冲区所需的字符数。

virtual int System::Text::ICUDecoder::GetCharCount(const uint8_t *bytes, int count, bool flush)
参数类型描述
字节const uint8_t *待解码的字节。
countint要解码的字节数。
flushbool如果为 true,则在计算后清除内部解码器状态。

ReturnValue

解码缓冲区所需的字符数。

另见