System.Hash.THash
Delphi
THash = record
C++
struct DECLSPEC_DRECORD THash
{
public:
static int __fastcall DigestAsInteger(const System::Sysutils::TBytes ADigest);
static System::UnicodeString __fastcall DigestAsString(const System::Sysutils::TBytes ADigest);
static System::UnicodeString __fastcall DigestAsStringGUID(const System::Sysutils::TBytes ADigest);
static System::UnicodeString __fastcall GetRandomString(const int ALen = 0xa);
static unsigned __fastcall ToBigEndian(unsigned AValue)/* overload */;
static unsigned __int64 __fastcall ToBigEndian(unsigned __int64 AValue)/* 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 common methods for all hash types.
THash provides the following methods:
- DigestAsInteger, DigestAsString, DigestAsStringGUID: Convert a digest of a certain length into another type.
- GetRandomString: Returns a random String of a given length.
- ToBigEndian: Returns a BigEndian memory representation of a provided Cardinal value.