Files
unity/crnlib/crn_checksum.h
T
richgel99@gmail.com 9f98ea7e22
2011-12-27 21:18:07 +00:00

14 lines
393 B
C++

// File: crn_checksum.h
#pragma once
namespace crnlib
{
const uint cInitAdler32 = 1U;
uint adler32(const void* pBuf, size_t buflen, uint adler32 = cInitAdler32);
// crc16() intended for small buffers - doesn't use an acceleration table.
const uint cInitCRC16 = 0;
uint16 crc16(const void* pBuf, size_t len, uint16 crc = cInitCRC16);
} // namespace crnlib