#include "C4Include.h"
#include "c4group/CStdFile.h"
#include "lib/SHA1.h"
#include <zlib.h>
#include "zlib/gzio.h"
#include <sys/stat.h>
Go to the source code of this file.
Functions | |
int | UncompressedFileSize (const char *szFilename) |
bool | GetFileCRC (const char *szFilename, uint32_t *pCRC32) |
bool | GetFileSHA1 (const char *szFilename, BYTE *pSHA1) |
bool GetFileCRC | ( | const char * | szFilename, |
uint32_t * | pCRC32 | ||
) |
Definition at line 355 of file CStdFile.cpp.
References CStdFile::Close(), CStdFileBufSize, iSize, CStdFile::Open(), and CStdFile::Read().
Referenced by C4UpdatePackage::Check(), DisplayGroup(), C4UpdatePackage::Execute(), C4Network2Res::GetStandalone(), C4UpdatePackage::MakeUpdate(), and C4Network2Res::SetByFile().
bool GetFileSHA1 | ( | const char * | szFilename, |
BYTE * | pSHA1 | ||
) |
Definition at line 381 of file CStdFile.cpp.
References CStdFile::Close(), CStdFileBufSize, sha1::get_digest(), iSize, CStdFile::Open(), sha1::process_bytes(), and CStdFile::Read().
Referenced by C4Network2Res::CalculateSHA(), C4StartupModsDownloader::ModInfo::LocalDiscoveryCheck::Execute(), and C4Record::Stop().
int UncompressedFileSize | ( | const char * | szFilename | ) |
Definition at line 322 of file CStdFile.cpp.
References _O_BINARY, c4_gzclose(), c4_gzdopen(), c4_gzread(), GetWideChar(), and O_CLOEXEC.