annotate ZlibWrapper.cpp @ 2371:43f29cb2e6ed

.
author Ritor1
date Sun, 01 Jun 2014 15:17:20 +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 };