Qx v0.5.8
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::Integrity Class Reference

The Integrity class is a collection of static functions pertaining to data completeness.

#include <qx/core/qx-integrity.h>

Static Public Member Functions

static quint32 crc32 (QByteArrayView data)
 
static QString generateChecksum (QByteArray &data, QCryptographicHash::Algorithm hashAlgorithm)
 

Member Function Documentation

◆ crc32()

quint32 Qx::Integrity::crc32 ( QByteArrayView data)
static

Returns the ISO 3309/ITU-T V.42 compliant CRC-32 checksum of data.

Note
This function will return 0 if data is empty.

◆ generateChecksum()

QString Qx::Integrity::generateChecksum ( QByteArray & data,
QCryptographicHash::Algorithm hashAlgorithm )
static

Computes the checksum of data using hashAlgorithm and returns it as a hexadecimal string.


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