System::BitConverter::ToString メソッド

BitConverter::ToString(const ArrayPtr<uint8_t>&, bool, const String&) method

指定されたバイト配列のすべての値を16進数文字列表現に変換します。16進表記で使用する文字の大文字小文字や、隣接するバイトのペア間に挿入される区切り文字は、対応する引数で指定できます。

static String System::BitConverter::ToString(const ArrayPtr<uint8_t> &value, bool uppercase=true, const String &separator=u"-")
パラメーター説明
valueconst ArrayPtr<uint8_t>&変換するバイトを含む Array
大文字bool結果の16進表記で使用する文字の大文字小文字を指定します
区切り文字const String&結果文字列で隣接するバイトペア間に挿入される区切り文字列

ReturnValue

String containing hexadecimal representation of the specified byte array

参照

BitConverter::ToString(const ArrayPtr<uint8_t>&, int) method

指定されたインデックスから開始して、指定されたバイト配列の値を16進数文字列表現に変換します。

static String System::BitConverter::ToString(const ArrayPtr<uint8_t> &value, int startIndex)
パラメーター説明
valueconst ArrayPtr<uint8_t>&変換するバイトを含む Array
startIndexint変換を開始する指定配列内のインデックス

ReturnValue

String containing hexadecimal representation of the specified range of elements of the specified array

参照

BitConverter::ToString(const ArrayPtr<uint8_t>&, int, int) method

指定されたバイト配列の値の範囲を16進数文字列表現に変換します。

static String System::BitConverter::ToString(const ArrayPtr<uint8_t> &value, int startIndex, int length)
パラメーター説明
valueconst ArrayPtr<uint8_t>&変換するバイトを含む Array
startIndexint変換対象のバイト配列要素の範囲が開始する指定配列内のインデックス
lengthint変換対象のバイト配列要素の範囲の長さ

ReturnValue

String containing hexadecimal representation of the specified range of elements of the specified array

参照