System::Text::UTF7Encoding::GetChars 方法

UTF7Encoding::GetChars(ArrayPtr<uint8_t>) method

获取对字节缓冲区进行解码后产生的字符。

virtual ArrayPtr<char_t> System::Text::Encoding::GetChars(ArrayPtr<uint8_t> bytes)
参数类型描述
bytesArrayPtr<uint8_t>Buffer 用于读取字节。

ReturnValue

Buffer of decoded characters.

另见

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

获取对字节缓冲区进行解码后产生的字符。

int System::Text::UTF7Encoding::GetChars(ArrayPtr<uint8_t> bytes, int byte_index, int byte_count, ArrayPtr<char_t> chars, int char_index) override
参数类型描述
bytesArrayPtr<uint8_t>Buffer 用于读取字节。
byte_indexint输入缓冲区偏移量。
byte_countint输入缓冲区大小。
charsArrayPtr<char_t>Buffer 用于放置字符。
char_indexint输出缓冲区偏移量。

ReturnValue

写入的字符数。

另见

UTF7Encoding::GetChars(ArrayPtr<uint8_t>, int, int) method

获取对字节缓冲区进行解码后产生的字符。

virtual ArrayPtr<char_t> System::Text::Encoding::GetChars(ArrayPtr<uint8_t> bytes, int index, int count)
参数类型描述
bytesArrayPtr<uint8_t>Buffer 用于读取字节。
索引int输入缓冲区偏移量。
countint输入缓冲区大小。

ReturnValue

Buffer of decoded characters.

另见

UTF7Encoding::GetChars(const uint8_t *, int, char_t *, int) method

获取对字节缓冲区进行解码后产生的字符。

int System::Text::UTF7Encoding::GetChars(const uint8_t *bytes, int byte_count, char_t *chars, int char_count) override
参数类型描述
bytesconst uint8_t *Buffer 用于读取字节。
byte_countint输入缓冲区大小。
charschar_t *Buffer 用于放置字符。
char_countint输出缓冲区大小。

ReturnValue

写入的字符数。

另见