System.Hash.THash.DigestAsInteger

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function DigestAsInteger(const ADigest: TBytes): Integer; static;

C++

static int __fastcall DigestAsInteger(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 an integer and returns that integer. The length of the digest must be 4.

Exceptions

A call to DigestAsInteger may raise the following exception:

Exception Exception.Message Scenarios

EHashException

Digest size must be 4 to Generate an Integer

  • The length of ADigest that you provided is not 4.

See Also