HiveMind
ICRC.h
Go to the documentation of this file.
1 #ifndef __ICRC_H__
2 #define __ICRC_H__
3 
4 #include <cstdint>
5 
6 class ICRC {
7  public:
8  virtual ~ICRC() = default;
9 
16  virtual uint32_t calculateCRC32(const void* data, uint32_t length) = 0;
17 
24  virtual uint8_t calculateCRC8(const void* data, uint32_t length) = 0;
25 };
26 
27 #endif //__ICRC_H__
ICRC::~ICRC
virtual ~ICRC()=default
ICRC::calculateCRC32
virtual uint32_t calculateCRC32(const void *data, uint32_t length)=0
Calculates the CRC32 of a buffer (Thread-safe)
ICRC::calculateCRC8
virtual uint8_t calculateCRC8(const void *data, uint32_t length)=0
Calculates the CRC8 of a buffer.
ICRC
Definition: ICRC.h:6