System::Text::Decoder::GetChars 方法

Decoder::GetChars(ArrayPtr<uint8_t>, int, int, ArrayPtr<char_t>, int) method

获取解码缓冲区后得到的字符。

virtual int System::Text::Decoder::GetChars(ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, ArrayPtr<char_t> chars, int charIndex)
参数类型描述
字节ArrayPtr<uint8_t>待解码的字节。
byteIndexint输入缓冲区偏移量。
byteCountint输入缓冲区大小。
charsArrayPtr<char_t>目标字符缓冲区。
charIndexint目标数组偏移量。

ReturnValue

写入的字符数。

另见

Decoder::GetChars(ArrayPtr<uint8_t>, int, int, ArrayPtr<char_t>, int, bool) method

获取解码缓冲区后得到的字符。

virtual int System::Text::Decoder::GetChars(ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, ArrayPtr<char_t> chars, int charIndex, bool flush)
参数类型描述
字节ArrayPtr<uint8_t>待解码的字节。
byteIndexint输入缓冲区偏移量。
byteCountint输入缓冲区大小。
charsArrayPtr<char_t>目标字符缓冲区。
charIndexint目标数组偏移量。
flushbool如果为 true,则在计算后清除内部解码器状态。

ReturnValue

写入的字符数。

另见

Decoder::GetChars(const uint8_t *, int, char_t *, int, bool) method

获取解码缓冲区后得到的字符。

virtual int System::Text::Decoder::GetChars(const uint8_t *bytes, int byteCount, char_t *chars, int charCount, bool flush)
参数类型描述
字节const uint8_t *待解码的字节。
byteCountint输入缓冲区大小。
charschar_t *目标字符缓冲区。
charCountint目标数组大小。
flushbool如果为 true,则在计算后清除内部解码器状态。

ReturnValue

写入的字符数。

另见