DecodeFromUtf8()

Rune::DecodeFromUtf8(ReadOnlySpan<uint8_t>, Rune&, int32_t&) method

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

static Buffers::OperationStatus System::Text::Rune::DecodeFromUtf8(ReadOnlySpan<uint8_t> source, Rune &result, int32_t &bytesConsumed)

Arguments

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

Return Value

The status of the decoding operation.

See Also