Language

ASCIIEncoding.GetDecoder メソッド

定義

ASCII でエンコードされたバイト シーケンスを Unicode 文字のシーケンスに変換するデコーダーを取得します。

public:
 override System::Text::Decoder ^ GetDecoder();
public override System.Text.Decoder GetDecoder();
[System.Runtime.InteropServices.ComVisible(false)]
public override System.Text.Decoder GetDecoder();
override this.GetDecoder : unit -> System.Text.Decoder
[<System.Runtime.InteropServices.ComVisible(false)>]
override this.GetDecoder : unit -> System.Text.Decoder
Public Overrides Function GetDecoder () As Decoder

返品

ASCII でエンコードされたバイト シーケンスを Unicode 文字のシーケンスに変換する Decoder 。

属性

注釈

Decoder.GetChars メソッドは、このクラスの GetChars メソッドと同様の方法で、バイトのシーケンシャル ブロックを文字のシーケンシャル ブロックに変換します。 ただし、 Decoder は、ブロックにまたがるバイト シーケンスを正しくデコードできるように、呼び出し間の状態情報を保持します。 Decoderでは、データ ブロックの末尾にある末尾のバイトも保持され、次のデコード操作で末尾のバイトが使用されます。 そのため、 GetDecoder と GetEncoder は、ネットワーク転送とファイル操作に役立ちます。これらの操作は、多くの場合、完全なデータ ストリームではなくデータ ブロックを処理するためです。

適用対象

こちらもご覧ください