DecodeFromUtf16()

Rune::DecodeFromUtf16(ReadOnlySpan<char16_t>, Rune&, int32_t&) method

Decodes the Rune at the beginning of the provided UTF-16 source buffer.

static Buffers::OperationStatus System::Text::Rune::DecodeFromUtf16(ReadOnlySpan<char16_t> source, Rune &result, int32_t &charsConsumed)

Arguments

ParameterTypeDescription
sourceReadOnlySpan<char16_t>The buffer to decode from.
resultRune&The decoded Rune, or the replacement character if the data is ill-formed.
charsConsumedint32_t&The number of code units consumed from the source buffer.

Return Value

The status of the decoding operation.

See Also