Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
util
Crc32.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2020 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3
* under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4
* LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5
******************************************************************************************************/
6
7
#ifndef CRC32_H
8
#define CRC32_H
9
10
#include <QString>
11
13
class
Crc32
14
{
15
public
:
17
Crc32
();
18
20
unsigned
filecrc
(
const
QString &filename)
const
;
21
23
unsigned
memcrc
(
const
unsigned
char
*b,
24
unsigned
int
n)
const
;
25
26
private
:
27
30
static
unsigned
long
m_crctab[];
31
};
32
33
#endif
// CRC32_H
Crc32::memcrc
unsigned memcrc(const unsigned char *b, unsigned int n) const
Compute the checksum using data in memory.
Definition
Crc32.cpp:100
Crc32::filecrc
unsigned filecrc(const QString &filename) const
Compute the checksum using data in file.
Definition
Crc32.cpp:69
Crc32::Crc32
Crc32()
Single default constructor.
Definition
Crc32.cpp:65
Generated on
for Engauge Digitizer by
1.17.0