Jameo Core Library
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
jm::CRC Class Reference

DWG files use many CRC (cyclic redundancy check) checksum algorithms to verify the integrity of the file. This method provides the appropriate methods to calculate and check the checksums. More...

Static Public Member Functions

static uint16 crc8 (uint16 initial, const uint8 *buffer, size_t length)
 Calculate checksum.
 

Detailed Description

DWG files use many CRC (cyclic redundancy check) checksum algorithms to verify the integrity of the file. This method provides the appropriate methods to calculate and check the checksums.

Member Function Documentation

◆ crc8()

static uint16 jm::CRC::crc8 ( uint16  initial,
const uint8 *  buffer,
size_t  length 
)
static

Calculate checksum.

Parameters
initialStart value for CRC calculation
bufferPointer to the first byte in the buffer to check.
lengthLength to check