System.Hash.THashBobJenkins

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

THashBobJenkins = record

C++

struct DECLSPEC_DRECORD THashBobJenkins
{
private:
    int FHash;
#ifndef _WIN64
    System::DynamicArray<System::Byte> __fastcall GetDigest();
#else /* _WIN64 */
    System::TArray__1<System::Byte> __fastcall GetDigest();
#endif /* _WIN64 */
    static int __fastcall HashLittle(const void *Data, int Len, int InitVal);
public:
    static THashBobJenkins __fastcall Create();
    void __fastcall Reset(int AInitialValue = 0x0);
    void __fastcall Update(const void *AData, unsigned ALength)/* overload */;
#ifndef _WIN64
    void __fastcall Update(const System::DynamicArray<System::Byte> AData, unsigned ALength = (unsigned)(0x0))/* overload */;
#else /* _WIN64 */
    void __fastcall Update(const System::TArray__1<System::Byte> AData, unsigned ALength = (unsigned)(0x0))/* overload */;
#endif /* _WIN64 */
    void __fastcall Update(const System::UnicodeString Input)/* overload */;
#ifndef _WIN64
    System::DynamicArray<System::Byte> __fastcall HashAsBytes();
#else /* _WIN64 */
    System::TArray__1<System::Byte> __fastcall HashAsBytes();
#endif /* _WIN64 */
    int __fastcall HashAsInteger();
    System::UnicodeString __fastcall HashAsString();
#ifndef _WIN64
    static System::DynamicArray<System::Byte> __fastcall GetHashBytes(const System::UnicodeString AData);
#else /* _WIN64 */
    static System::TArray__1<System::Byte> __fastcall GetHashBytes(const System::UnicodeString AData);
#endif /* _WIN64 */
    static System::UnicodeString __fastcall GetHashString(const System::UnicodeString AString);
    static int __fastcall GetHashValue(const System::UnicodeString AData)/* overload */;
    static int __fastcall GetHashValue(const void *AData, int ALength, int AInitialValue = 0x0)/* overload */;
};

プロパティ

種類 可視性 ソース ユニット
record
struct
public
System.Hash.pas
System.Hash.hpp
System.Hash System.Hash


説明

Jenkins ハッシュを実装するレコードです。

THashBobJenkins には、以下のようなメソッドが用意されています。

  • Update: 渡されたデータを使ってハッシュ値を更新します。
  • GetHashValue: 渡されたデータのハッシュ値を返します。
  • HashAsString: ハッシュ値の文字列表現を返します。

関連項目