System.Hash.THash

De Appmethod Libraries
Aller à : navigation, rechercher

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 */;
};

Propriétés

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


Description

Un enregistrement qui implémente les méthodes communes pour tous les types de hachage.

THash fournit les méthodes suivantes :

Voir aussi