mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-09 18:29:35 +00:00
1
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose: Engine crc routines
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
#ifndef CHECKSUM_H
|
||||
#define CHECKSUM_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "checksum_crc.h"
|
||||
#include "checksum_md5.h"
|
||||
#include "quakedef.h"
|
||||
|
||||
bool CRC_File(CRC32_t *crcvalue, const char *pszFileName);
|
||||
byte COM_BlockSequenceCRCByte (byte *base, int length, int sequence);
|
||||
bool CRC_MapFile(CRC32_t *crcvalue, const char *pszFileName);
|
||||
|
||||
bool MD5_MapFile(MD5Value_t *md5value, const char *pszFileName);
|
||||
bool MD5_Hash_File(unsigned char digest[16], const char *pszFileName, bool bSeed, unsigned int seed[4]);
|
||||
bool MD5_Hash_Buffer( unsigned char pDigest[16], const unsigned char *pBuffer, int nSize, bool bSeed = false, unsigned int seed[4] = NULL );
|
||||
|
||||
#endif // CHECKSUM_H
|
||||
Reference in New Issue
Block a user