Show: Object Pascal C++
Display Preferences

System.Hash.THash

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

  THash = record
    class function DigestAsInteger(const ADigest: TBytes): Integer; static;
    class function DigestAsString(const ADigest: TBytes): string; static;
    class function DigestAsStringGUID(const ADigest: TBytes): string; static;
    class function GetRandomString(const ALen: Integer = 10): string; static;
    class function ToBigEndian(AValue: Cardinal): Cardinal; overload; static; inline;
    class function ToBigEndian(AValue: UInt64): UInt64; overload; static; inline;
  end;

C++

struct DECLSPEC_DRECORD THash
{
public:
#ifndef _WIN64
    static int __fastcall DigestAsInteger(const System::DynamicArray<System::Byte> ADigest);
    static System::UnicodeString __fastcall DigestAsString(const System::DynamicArray<System::Byte> ADigest);
    static System::UnicodeString __fastcall DigestAsStringGUID(const System::DynamicArray<System::Byte> ADigest);
#else /* _WIN64 */
    static int __fastcall DigestAsInteger(const System::TArray__1<System::Byte> ADigest);
    static System::UnicodeString __fastcall DigestAsString(const System::TArray__1<System::Byte> ADigest);
    static System::UnicodeString __fastcall DigestAsStringGUID(const System::TArray__1<System::Byte> ADigest);
#endif /* _WIN64 */
    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:

See Also

Personal tools
Translations