QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
7zCrc.h File Reference
#include "7zTypes.h"
Include dependency graph for 7zCrc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRC_INIT_VAL   0xFFFFFFFF
#define CRC_GET_DIGEST(crc)
#define CRC_UPDATE_BYTE(crc, b)

Typedefs

typedef UInt32(Z7_FASTCALLCRC_FUNC) (UInt32 v, const void *data, size_t size, const UInt32 *table)

Functions

void Z7_FASTCALL CrcGenerateTable (void)
UInt32 Z7_FASTCALL CrcUpdate (UInt32 crc, const void *data, size_t size)
UInt32 Z7_FASTCALL CrcCalc (const void *data, size_t size)

Variables

EXTERN_C_BEGIN UInt32 g_CrcTable []

Macro Definition Documentation

◆ CRC_GET_DIGEST

#define CRC_GET_DIGEST ( crc)
Value:
((crc) ^ CRC_INIT_VAL)
#define CRC_INIT_VAL
Definition 7zCrc.h:16

◆ CRC_INIT_VAL

#define CRC_INIT_VAL   0xFFFFFFFF

◆ CRC_UPDATE_BYTE

#define CRC_UPDATE_BYTE ( crc,
b )
Value:
(g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
EXTERN_C_BEGIN UInt32 g_CrcTable[]

Typedef Documentation

◆ CRC_FUNC

typedef UInt32(Z7_FASTCALL * CRC_FUNC) (UInt32 v, const void *data, size_t size, const UInt32 *table)

Function Documentation

◆ CrcCalc()

UInt32 Z7_FASTCALL CrcCalc ( const void * data,
size_t size )

◆ CrcGenerateTable()

void Z7_FASTCALL CrcGenerateTable ( void )
Here is the caller graph for this function:

◆ CrcUpdate()

UInt32 Z7_FASTCALL CrcUpdate ( UInt32 crc,
const void * data,
size_t size )

Variable Documentation

◆ g_CrcTable

EXTERN_C_BEGIN UInt32 g_CrcTable[]
extern