Utf8 クラス

定義

UTF-8 と UTF-16 のエンコード間でチャンクされたデータを変換する静的メソッドを提供します。

public ref class Utf8 abstract sealed
public static class Utf8
type Utf8 = class
Public Class Utf8
継承
Utf8

メソッド

FromUtf16(ReadOnlySpan<Char>, Span<Byte>, Int32, Int32, Boolean, Boolean)

UTF-16 の文字スパンを UTF-8 でエンコードされたバイト スパンに変換します。

IsValid(ReadOnlySpan<Byte>)

値が整形式 UTF-8 であることを検証します。

ToUtf16(ReadOnlySpan<Byte>, Span<Char>, Int32, Int32, Boolean, Boolean)

UTF-8 でエンコードされた読み取り専用のバイト スパンを UTF-16 でエンコードされた文字スパンに変換します。

TryWrite(Span<Byte>, IFormatProvider, Utf8+TryWriteInterpolatedStringHandler, Int32)

指定した補間文字列を UTF-8 バイト スパンに書き込みます。

TryWrite(Span<Byte>, Utf8+TryWriteInterpolatedStringHandler, Int32)

指定した補間文字列を UTF-8 バイト スパンに書き込みます。

適用対象