Mercurial > mm7
view Engine/ZlibWrapper.cpp @ 2562:b8a56afc6ba1
new var no_actors, lights_flag, debug_lights, StationaryLights and MobileLights
author | Ritor1 |
---|---|
date | Sun, 17 May 2015 22:42:13 +0600 |
parents | 68cdef6879a0 |
children |
line wrap: on
line source
namespace zlib { #include "lib\zlib\zlib.h" int MemUnzip(void *dest, unsigned int *destLen, const void *source, unsigned int sourceLen) { //return uncompress((zlib::Bytef *)dest, (zlib::uLongf *)destLen, (zlib::Bytef *)source, sourceLen); return uncompress((Bytef *)dest, (uLongf *)destLen, (Bytef *)source, sourceLen); return 0; } int MemZip(void *dest, unsigned int *destLen, void *source, unsigned int sourceLen) { //return compress((zlib::Bytef *)dest, (zlib::uLongf *)destLen, (zlib::Bytef *)source, sourceLen); return compress((Bytef *)dest, (uLongf *)destLen, (Bytef *)source, sourceLen); return 0; } };