Changeset View
Changeset View
Standalone View
Standalone View
source/lib/file/archive/codec_zlib.cpp
Show All 23 Lines | |||||
#include "lib/file/archive/codec_zlib.h" | #include "lib/file/archive/codec_zlib.h" | ||||
#include "lib/alignment.h" | #include "lib/alignment.h" | ||||
#include "lib/file/archive/codec.h" | #include "lib/file/archive/codec.h" | ||||
#include "lib/external_libraries/zlib.h" | #include "lib/external_libraries/zlib.h" | ||||
#include "lib/sysdep/cpu.h" | #include "lib/sysdep/cpu.h" | ||||
#include <cstring> | |||||
class Codec_ZLib : public ICodec | class Codec_ZLib : public ICodec | ||||
{ | { | ||||
public: | public: | ||||
u32 UpdateChecksum(u32 checksum, const u8* in, size_t inSize) const | u32 UpdateChecksum(u32 checksum, const u8* in, size_t inSize) const | ||||
{ | { | ||||
#if CODEC_COMPUTE_CHECKSUM | #if CODEC_COMPUTE_CHECKSUM | ||||
return (u32)crc32(checksum, in, (uInt)inSize); | return (u32)crc32(checksum, in, (uInt)inSize); | ||||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator