author "Mozilla Releng Treescript <release+treescript@mozilla.org>"
Fri, 08 Jun 2018 14:34:13 +0000
changeset 471221 be464c7297f52eabb4ecdcdc2a3ce95dd875fd4a
parent 245381 8628a94a64445c1f66b349a8bbd391596e633adc
child 505383 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
No bug - Tagging 873262bdac1b9da93249e77d53aefdf2f57d84de with DEVEDITION_61_0b12_BUILD1, DEVEDITION_61_0b12_RELEASE a=release CLOSED TREE

#ifndef crc32c_h
#define crc32c_h

#include <stdint.h>
#include <stddef.h>

#ifdef __cplusplus
extern "C" {

// Compute a CRC32c as defined in RFC3720.  This is a different polynomial than
// what is used in the crc for zlib, etc.  Typical usage to calculate a new CRC:
//    ComputeCrc32c(~0, buffer, bufferLength);
ComputeCrc32c(uint32_t aCrc, const void *aBuf, size_t aSize);

#ifdef __cplusplus
} // extern "C"

#endif // crc32c_h