annotate ZlibWrapper.cpp @ 2462:1d04e48651d4

Render split into interface and realization, added Direct3D 11
author a.parshin
date Tue, 12 Aug 2014 21:34:18 +0300
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 };