MetadataStringDecoder クラス
定義
テキストを表すメタデータ内のバイト シーケンスをデコードするためのカスタム メカニズムを備えた MetadataReader を提供します。Provides the MetadataReader with a custom mechanism for decoding byte sequences in metadata that represent text.
public ref class MetadataStringDecoder
public class MetadataStringDecoder
type MetadataStringDecoder = class
Public Class MetadataStringDecoder
- 継承
-
MetadataStringDecoder
注釈
この型は次のように使用できます。This type can be used as follows:
無効な入力の処理をカスタマイズします。To customize the treatment of invalid input. デコーダーが指定されていない場合、MetadataReader は
\uFFFD
で既定のフォールバック置換を使用します。When no decoder is provided, the MetadataReader uses the default fallback replacement with\uFFFD
.デコード操作ごとに新しい文字列を割り当てる代わりに、既存の文字列を再利用すること。To reuse existing strings instead of allocating a new one for each decoding operation.
コンストラクター
MetadataStringDecoder(Encoding) |
指定のエンコーディングを使用し、MetadataStringDecoder クラスの新しいインスタンスを初期化します。Initializes a new instance of the MetadataStringDecoder class using the given encoding. |
プロパティ
DefaultUTF8 |
デコーダーがコンストラクターに与えられないときに UTF-8 をデコードする目的で MetadataReader で使用される既定のデコーダーを取得します。Gets the default decoder used by MetadataReader to decode UTF-8 when no decoder is provided to the constructor. |
Encoding |
このインスタンスで使用されるエンコーディングを取得します。Gets the encoding used by this instance. |
メソッド
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判定します。Determines whether the specified object is equal to the current object. (継承元 Object) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetString(Byte*, Int32) |
メタデータでバイト シーケンスの文字列を取得します。Obtains strings for byte sequences in metadata. これをオーバーライドし、必要に応じて文字列をキャッシュします。Override this to cache strings if required. それ以外の場合、Encoding に直接転送することで実装されます。呼び出しごとに新しい文字列が割り当てられます。Otherwise, it is implemented by forwarding straight to Encoding and every call will allocate a new string. |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
ToString() |
現在のオブジェクトを表す string を返します。Returns a string that represents the current object. (継承元 Object) |