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

반환

Boolean

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

설명

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

적용 대상