Mercurial > mm7
comparison Engine/ZlibWrapper.cpp @ 2499:68cdef6879a0
engine folder
author | Ritor1 |
---|---|
date | Fri, 19 Sep 2014 02:57:42 +0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2498:92eeeb5200f2 | 2499:68cdef6879a0 |
---|---|
1 | |
2 namespace zlib | |
3 { | |
4 #include "lib\zlib\zlib.h" | |
5 int MemUnzip(void *dest, unsigned int *destLen, const void *source, unsigned int sourceLen) | |
6 { | |
7 //return uncompress((zlib::Bytef *)dest, (zlib::uLongf *)destLen, (zlib::Bytef *)source, sourceLen); | |
8 return uncompress((Bytef *)dest, (uLongf *)destLen, (Bytef *)source, sourceLen); | |
9 return 0; | |
10 } | |
11 | |
12 int MemZip(void *dest, unsigned int *destLen, void *source, unsigned int sourceLen) | |
13 { | |
14 //return compress((zlib::Bytef *)dest, (zlib::uLongf *)destLen, (zlib::Bytef *)source, sourceLen); | |
15 return compress((Bytef *)dest, (uLongf *)destLen, (Bytef *)source, sourceLen); | |
16 return 0; | |
17 } | |
18 }; |