RetroArch
Macros | Functions | Variables
encoding_crc32.c File Reference
#include <stdint.h>
#include <stddef.h>
#include <encodings/crc32.h>
#include <streams/file_stream.h>
#include <stdlib.h>
Include dependency graph for encoding_crc32.c:
This graph shows which files directly or indirectly include this file:

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]
 

Macro Definition Documentation

◆ CRC32_BUFFER_SIZE

#define CRC32_BUFFER_SIZE   1048576

◆ CRC32_MAX_MB

#define CRC32_MAX_MB   64

Function Documentation

◆ encoding_crc32()

uint32_t encoding_crc32 ( uint32_t  crc,
const uint8_t buf,
size_t  len 
)
Here is the caller graph for this function:

◆ file_crc32()

uint32_t file_crc32 ( uint32_t  crc,
const char *  path 
)

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.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ crc32_table

const uint32_t crc32_table[256]
static