GetChars()

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

Get the characters that result from decoding a byte buffer.

int System::Text::ICUEncoding::GetChars(const uint8_t *bytes, int byte_count, char_t *chars, int char_count) override

Arguments

ParameterTypeDescription
bytesconst uint8_t *Buffer to read bytes from.
byte_countintInput buffer size.
charschar_t *Buffer to put characters to.
char_countintOutput buffer size.

Return Value

Number of written characters.

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

Get the characters that result from decoding a byte buffer.

virtual int System::Text::Encoding::GetChars(ArrayPtr<uint8_t> bytes, int byte_index, int byte_count, ArrayPtr<char_t> chars, int char_index)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Buffer to read bytes from.
byte_indexintInput buffer offset.
byte_countintInput buffer size.
charsArrayPtr<char_t>Buffer to put characters to.
char_indexintOutput buffer offset.

Return Value

Number of written characters.

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

Get the characters that result from decoding a byte buffer.

virtual ArrayPtr<char_t> System::Text::Encoding::GetChars(ArrayPtr<uint8_t> bytes, int index, int count)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Buffer to read bytes from.
indexintInput buffer offset.
countintInput buffer size.

Return Value

Buffer of decoded characters.

ICUEncoding::GetChars(ArrayPtr<uint8_t>) method

Get the characters that result from decoding a byte buffer.

virtual ArrayPtr<char_t> System::Text::Encoding::GetChars(ArrayPtr<uint8_t> bytes)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Buffer to read bytes from.

Return Value

Buffer of decoded characters.

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

Get the characters that result from decoding a byte buffer.

virtual int System::Text::Encoding::GetChars(const uint8_t *bytes, int byte_count, char_t *chars, int char_count)

Arguments

ParameterTypeDescription
bytesconst uint8_t *Buffer to read bytes from.
byte_countintInput buffer size.
charschar_t *Buffer to put characters to.
char_countintOutput buffer size.

Return Value

Number of written characters.

See Also