次の方法で共有


HashAlgorithm.ComputeHash メソッド (Byte , Int32, Int32)

指定したバイト配列の指定した領域のハッシュ値を計算します。

Overloads Public Function ComputeHash( _
   ByVal buffer() As Byte, _   ByVal offset As Integer, _   ByVal count As Integer _) As Byte()
[C#]
public byte[] ComputeHash(byte[] buffer,intoffset,intcount);
[C++]
public: unsigned char ComputeHash(unsigned charbuffer __gc[],intoffset,intcount)  __gc[];
[JScript]
public function ComputeHash(
   buffer : Byte[],offset : int,count : int) : Byte[];

パラメータ

  • buffer
    ハッシュ コードを計算する対象の入力データ。
  • offset
    バイト配列内のデータの使用開始位置を示すオフセット。
  • count
    配列内でデータとして使用されるバイトの数。

戻り値

計算済みハッシュ コード。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

HashAlgorithm クラス | HashAlgorithm メンバ | System.Security.Cryptography 名前空間 | HashAlgorithm.ComputeHash オーバーロードの一覧 | 暗号サービス