#include <stddef.h>
#include <stdint.h>
#include <sys/mman.h>
#include "common.h"
Go to the source code of this file.
Functions | |
uint32_t | checksum_buf (uint32_t crc32, const unsigned char *buf, size_t count) |
Calculates the checksum of the given buffer, up to count bytes. | |
Variables | |
static uint32_t | table [256] |
uint32_t checksum_buf | ( | uint32_t | crc32, | |
const unsigned char * | buf, | |||
size_t | count | |||
) |
Calculates the checksum of the given buffer, up to count bytes.
Returns the checksum. The initial crc32 must be 0.
Definition at line 82 of file checksum.c.
Referenced by fill_trans(), journal_add_op(), journal_commit(), and journal_new().
uint32_t table[256] [static] |