Rune.EncodeToUtf16(Span<Char>) Método

Definição

Codifica este Rune em um buffer de destino 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

Parâmetros

destination
Span<Char>

O buffer no qual gravar esse valor como UTF-16.The buffer to which to write this value as UTF-16.

Retornos

Int32

O número de valores Char gravados em destination.The number of Char values written to destination.

Exceções

destination não é grande o suficiente para manter a saída.destination is not large enough to hold the output.

Aplica-se a