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입니다.

반품

true값이 버퍼에 기록된 경우 그렇지 않으면 . false

설명

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

적용 대상