unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

HashValue Struct Reference

#include <hash.hpp>

Public Member Functions

void Init (HASH_TYPE Type)
 
bool operator== (const HashValue &cmp)
 
bool operator!= (const HashValue &cmp)
 

Public Attributes

HASH_TYPE Type
 
union {
   uint   CRC32
 
   byte   Digest [SHA256_DIGEST_SIZE]
 
}; 
 

Detailed Description

Definition at line 6 of file hash.hpp.

Member Function Documentation

◆ Init()

void HashValue::Init ( HASH_TYPE  Type)

Definition at line 3 of file hash.cpp.

References CRC32, Digest, HASH_BLAKE2, HASH_CRC32, HASH_RAR14, and Type.

Referenced by FileHeader::Reset().

◆ operator!=()

bool HashValue::operator!= ( const HashValue cmp)
inline

Definition at line 10 of file hash.hpp.

◆ operator==()

bool HashValue::operator== ( const HashValue cmp)

Definition at line 29 of file hash.cpp.

References CRC32, Digest, HASH_BLAKE2, HASH_CRC32, HASH_NONE, HASH_RAR14, and Type.

Member Data Documentation

◆ 

union { ... } HashValue::@4

◆ CRC32

◆ Digest

◆ Type


The documentation for this struct was generated from the following files: