Rune.EncodeToUtf16(Span<Char>) Rune.EncodeToUtf16(Span<Char>) Rune.EncodeToUtf16(Span<Char>) Rune.EncodeToUtf16(Span<Char>) Method

Definizione

Codifica questo oggetto Rune in un buffer di destinazione UTF-16.Encodes this Rune to a UTF-16 destination buffer.

public:
 int EncodeToUtf16(Span<char> destination);
public int EncodeToUtf16 (Span<char> destination);
member this.EncodeToUtf16 : Span<char> -> int
Public Function EncodeToUtf16 (destination As Span(Of Char)) As Integer

Parametri

destination
Span<Char>

Buffer in cui scrivere questo valore come UTF-16.The buffer to which to write this value as UTF-16.

Restituisce

Numero di valori Char scritti in destination.The number of Char values written to destination.

Eccezioni

destination non è sufficientemente grande per contenere l'output.destination is not large enough to hold the output.

Si applica a