DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Defines | Typedefs | Functions
include/zipcrc.h File Reference
#include <stdlib.h>
#include <stdint.h>

Go to the source code of this file.

Defines

#define CRC_ALGO_TABLE_DRIVEN   1

Typedefs

typedef uint_fast32_t zipcrc_t

Functions

zipcrc_t zipcrc_update (zipcrc_t crc, const void *data, size_t data_len)

Detailed Description

Functions and types for CRC checks.

Generated on Sat Jul 29 13:31:06 2017, by pycrc v0.9, https://pycrc.org using the configuration: Width = 32 Poly = 0x04c11db7 Xor_In = 0xffffffff ReflectIn = True Xor_Out = 0xffffffff ReflectOut = True Algorithm = table-driven

Definition in file zipcrc.h.


Define Documentation

#define CRC_ALGO_TABLE_DRIVEN   1

The definition of the used algorithm.

This is not used anywhere in the generated code, but it may be used by the application code to call algoritm-specific code, is desired.

Definition at line 33 of file zipcrc.h.


Typedef Documentation

typedef uint_fast32_t zipcrc_t

The type of the CRC values.

This type must be big enough to contain at least 32 bits.

Definition at line 41 of file zipcrc.h.


Function Documentation

zipcrc_t zipcrc_update ( zipcrc_t  crc,
const void *  data,
size_t  data_len 
)

Update the crc value with new data.

Parameters:
crcThe current crc value.
dataPointer to a buffer of data_len bytes.
data_lenNumber of bytes in the data buffer.
Returns:
The updated crc value.

Definition at line 66 of file zipcrc.c.