System.Hash.THashBobJenkins

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

THashBobJenkins = record

C++

struct DECLSPEC_DRECORD THashBobJenkins
{
private:
    int FHash;
    System::Sysutils::TBytes __fastcall GetDigest();
    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 */;
    void __fastcall Update(const System::Sysutils::TBytes AData, unsigned ALength = (unsigned)(0x0))/* overload */;
    void __fastcall Update(const System::UnicodeString Input)/* overload */;
    System::Sysutils::TBytes __fastcall HashAsBytes();
    int __fastcall HashAsInteger();
    System::UnicodeString __fastcall HashAsString();
    static System::Sysutils::TBytes __fastcall GetHashBytes(const System::UnicodeString AData);
    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 */;
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.Hash.pas
System.Hash.hpp
System.Hash System.Hash

Description

A record that implements the Jenkins hash type.

THashBobJenkins provides methods such as:

  • Update: Updates the hash value with the provided data.
  • GetHashValue: Returns hash value of the provided data.
  • HashAsString: Returns a String representation of the hash value.

See Also