annotate ZlibWrapper.cpp @ 2461:ff7f4995aa25

function MakeScreenshot()
author Ritor1
date Tue, 05 Aug 2014 17:00:35 +0600
parents 8a49cf25fb88
children
rev   line source
2352
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
1
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
2 namespace zlib
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
3 {
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
4 #include "lib\zlib\zlib.h"
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
5 int MemUnzip(void *dest, unsigned int *destLen, const void *source, unsigned int sourceLen)
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
6 {
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
7 //return uncompress((zlib::Bytef *)dest, (zlib::uLongf *)destLen, (zlib::Bytef *)source, sourceLen);
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
8 return uncompress((Bytef *)dest, (uLongf *)destLen, (Bytef *)source, sourceLen);
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
9 return 0;
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
10 }
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
11
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
12 int MemZip(void *dest, unsigned int *destLen, void *source, unsigned int sourceLen)
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
13 {
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
14 //return compress((zlib::Bytef *)dest, (zlib::uLongf *)destLen, (zlib::Bytef *)source, sourceLen);
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
15 return compress((Bytef *)dest, (uLongf *)destLen, (Bytef *)source, sourceLen);
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
16 return 0;
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
17 }
8a49cf25fb88 Moving zlib wrappers to separate headers
Grumpy7
parents:
diff changeset
18 };