bdberl/c_src/bdberl_crc32.h
Jon Meredith dc867e363b Incorporated Diz's crc generation/checking patch to bdberl.erl.
Added crc checking before/after BDB accesses in C driver.
Changed get to use malloc DBTs rather than the user supplied buffer
previously.
2009-06-23 15:02:31 -05:00

15 lines
395 B
C

/* -------------------------------------------------------------------
*
* bdberl: CRC checks
* Copyright (c) 2008-9 The Hive. All rights reserved.
*
* ------------------------------------------------------------------- */
#ifndef _BDBERL_CRC32
#define _BDBERL_CRC32
#include <stdint.h>
uint32_t bdberl_crc32(const unsigned char *blk_adr, unsigned int blk_len);
#endif // _BDBERL_CRC32