GetChars()

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

Get the characters that result from decoding a buffer.

virtual int System::Text::ICUDecoder::GetChars(ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, ArrayPtr<char_t> chars, int charIndex)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
byteIndexintInput buffer offset.
byteCountintInput buffer size.
charsArrayPtr<char_t>Destination character buffer.
charIndexintDestination array offset.

Return Value

Number of characters written.

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

Get the characters that result from decoding a buffer.

virtual int System::Text::ICUDecoder::GetChars(ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, ArrayPtr<char_t> chars, int charIndex, bool flush)

Arguments

ParameterTypeDescription
bytesArrayPtr<uint8_t>Bytes to decode.
byteIndexintInput buffer offset.
byteCountintInput buffer size.
charsArrayPtr<char_t>Destination character buffer.
charIndexintDestination array offset.
flushboolIf true, cleans internal decoder state after calculation.

Return Value

Number of characters written.

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

Get the characters that result from decoding a buffer.

virtual int System::Text::ICUDecoder::GetChars(const uint8_t *bytes, int byteCount, char_t *chars, int charCount, bool flush)

Arguments

ParameterTypeDescription
bytesconst uint8_t *Bytes to decode.
byteCountintInput buffer size.
charschar_t *Destination character buffer.
charCountintDestination array size.
flushboolIf true, cleans internal decoder state after calculation.

Return Value

Number of characters written.

See Also