Rune.TryEncodeToUtf8(Span<Byte>, Int32) 메서드

정의

이를 Rune UTF-8로 인코딩된 대상 버퍼로 인코딩합니다.

public:
 bool TryEncodeToUtf8(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryEncodeToUtf8(Span<byte> destination, out int bytesWritten);
member this.TryEncodeToUtf8 : Span<byte> * int -> bool
Public Function TryEncodeToUtf8 (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

매개 변수

destination
Span<Byte>

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

bytesWritten
Int32

기록된 destination값의 Byte 수 또는 대상 버퍼가 출력을 포함할 만큼 크지 않은 경우 0입니다.

반품

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

설명

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

적용 대상