![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "darkplaces.h"
Go to the source code of this file.
Macros | |
#define | CRC_INIT_VALUE 0xffff |
#define | CRC_XOR_VALUE 0x0000 |
Functions | |
unsigned char | COM_BlockSequenceCRCByteQW (unsigned char *base, int length, int sequence) |
unsigned short | CRC_Block (const unsigned char *data, size_t size) |
unsigned short | CRC_Block_CaseInsensitive (const unsigned char *data, size_t size) |
Variables | |
static const u8 | chktbl [1024+4] |
static const u16 | crctable [256] |
#define CRC_INIT_VALUE 0xffff |
Definition at line 36 of file com_crc16.c.
Referenced by CRC_Block(), and CRC_Block_CaseInsensitive().
#define CRC_XOR_VALUE 0x0000 |
Definition at line 37 of file com_crc16.c.
Referenced by CRC_Block(), and CRC_Block_CaseInsensitive().
Definition at line 132 of file com_crc16.c.
References chktbl, CRC_Block(), and length.
Referenced by CL_SendMove().
unsigned short CRC_Block | ( | const unsigned char * | data, |
size_t | size ) |
Definition at line 75 of file com_crc16.c.
References CRC_INIT_VALUE, CRC_XOR_VALUE, crctable, data, and size.
Referenced by CL_StopDownload(), CL_VM_Init(), COM_BlockSequenceCRCByteQW(), CompressedImageCache_Add(), CompressedImageCache_Find(), Crypto_ClearHostKey(), Crypto_RetrieveHostKey(), Crypto_StoreHostKey(), Cvar_FindVar(), Cvar_FindVarLink(), Cvar_Link(), Cvar_RegisterVirtual(), Draw_CachePic_Flags(), Draw_FreePic(), Draw_NewPic(), FS_CRCFile(), Mod_LoadModel(), Mod_Q1BSP_LoadSplitSky(), Mod_Q1BSP_LoadTextures(), PRVM_PO_Load(), PRVM_PO_Lookup(), PRVM_Prog_Load(), R_InitShaderModeInfo(), R_SkinFrame_Find(), R_SkinFrame_FindNextByName(), R_SkinFrame_LoadInternal8bit(), R_SkinFrame_LoadInternalQuake(), SV_Prepare_CSQC(), SV_ReadClientMessage(), and VM_crc16().
unsigned short CRC_Block_CaseInsensitive | ( | const unsigned char * | data, |
size_t | size ) |
Definition at line 83 of file com_crc16.c.
References CRC_INIT_VALUE, CRC_XOR_VALUE, crctable, data, and size.
Referenced by Mod_LookupQ3Shader(), Q3Shader_AddToHash(), and VM_crc16().
|
static |
Definition at line 92 of file com_crc16.c.
Referenced by COM_BlockSequenceCRCByteQW().
|
static |
Definition at line 39 of file com_crc16.c.
Referenced by CRC_Block(), and CRC_Block_CaseInsensitive().