Source - Crc32 checksum. More...
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "crc32.h"
Go to the source code of this file.
Defines | |
#define | CRC_BUFFER_SIZE 10240 |
Size of buffer used to compute crc of files. | |
Functions | |
void | crc32_init_seed (const uint32_t polynominal) |
initialize crc32 compute table | |
uint32_t | crc32 (const char *data, const size_t size) |
compute an array crc32 checksum | |
uint32_t | strcrc32 (const char *data) |
compute a string crc32 checksum | |
uint32_t | crc32_file (const char *path) |
compute a file crc32 checksum |
Source - Crc32 checksum.
Definition in file crc32.c.
uint32_t crc32 | ( | const char * | data, | |
const size_t | size | |||
) | [inline] |
compute an array crc32 checksum
data | data source | |
size | size of source |
Definition at line 79 of file crc32.c.
Referenced by db5_index_index_column().
uint32_t crc32_file | ( | const char * | path | ) |
compute a file crc32 checksum
path | file source - utf8 |
Definition at line 100 of file crc32.c.
References CRC_BUFFER_SIZE.
void crc32_init_seed | ( | const uint32_t | polynominal | ) |
uint32_t strcrc32 | ( | const char * | data | ) |
compute a string crc32 checksum
data | string source |
Definition at line 84 of file crc32.c.
Referenced by names_generate_shortname(), and names_insert().