Rune.TryEncodeToUtf16(Span<Char>, Int32) 메서드

정의

Rune을 UTF-16으로 인코딩된 대상 버퍼로 인코딩합니다.

public:
 bool TryEncodeToUtf16(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryEncodeToUtf16 (Span<char> destination, out int charsWritten);
member this.TryEncodeToUtf16 : Span<char> * int -> bool
Public Function TryEncodeToUtf16 (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean

매개 변수

destination
Span<Char>

이 값을 UTF-16으로 인코딩된 값으로 쓸 버퍼입니다.

charsWritten
Int32

destination에 쓴 Char 값의 수입니다. 또는 대상 버퍼가 출력을 포함하기에 충분히 크지 않은 경우 0입니다.

반환

Boolean

값을 버퍼에 쓰면 true이고, 그렇지 않으면 false입니다.

설명

Utf16SequenceLength 버퍼의 필요한 크기를 destination 결정하기 위해 속성을 미리 쿼리할 수 있습니다.

적용 대상