26 lines
544 B
C++
26 lines
544 B
C++
#ifndef HEADERCHECKER_HPP
|
|
#define HEADERCHECKER_HPP
|
|
|
|
class HeaderChecker{
|
|
|
|
private:
|
|
|
|
HeaderChecker();
|
|
|
|
public:
|
|
|
|
static const unsigned int HEADER_DRF_LENGTH=4;
|
|
|
|
static const unsigned char HEADER_DRF[HEADER_DRF_LENGTH];
|
|
|
|
static const unsigned int HEADER_PNG_LENGTH=8;
|
|
|
|
static const unsigned char HEADER_PNG[HEADER_PNG_LENGTH];
|
|
|
|
static unsigned char checkHeader(const unsigned char* srcHeader, unsigned int srcHeaderLength, const unsigned char* dstHeader);
|
|
|
|
};
|
|
|
|
|
|
#endif // HEADERCHECKER_HPP
|