RetroArch
|
#include <stdint.h>
#include <stddef.h>
#include <encodings/crc32.h>
#include <streams/file_stream.h>
#include <stdlib.h>
Macros | |
#define | CRC32_BUFFER_SIZE 1048576 |
#define | CRC32_MAX_MB 64 |
Functions | |
uint32_t | encoding_crc32 (uint32_t crc, const uint8_t *buf, size_t len) |
uint32_t | file_crc32 (uint32_t crc, const char *path) |
Variables | |
static const uint32_t | crc32_table [256] |
#define CRC32_BUFFER_SIZE 1048576 |
#define CRC32_MAX_MB 64 |
Calculate a CRC32 from the first part of the given file. "first part" being the first (CRC32_BUFFER_SIZE * CRC32_MAX_MB) bytes.
Returns: the crc32, or 0 if there was an error.