System.Hash.THash.DigestAsStringGUID

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function DigestAsStringGUID(const ADigest: TBytes): string; static;

C++

static System::UnicodeString __fastcall DigestAsStringGUID(const System::DynamicArray<System::Byte> ADigest);

Properties

Type Visibility Source Unit Parent
function public
System.Hash.pas
System.Hash.hpp
System.Hash THash

Description

Converts the provided hash digest into a GUID String and returns that String.

The expected length of the provided digest is 16. DigestAsStringGUID calls TGuidHelper.Create. If the length of the provided digest is not 16, the following happens:

Exception Exception.Message Scenarios

EArgumentException

Byte array for GUID must be exactly <16> bytes long

  • The length of ADigest that you provided is less than 16.

See Also