diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-02 22:41:02 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-02 22:41:02 +0000 |
commit | 6b7441516002d6e7cca424416bb67c6bc7d7c9d2 (patch) | |
tree | 6ce7822b0ca6e0abdfbbd938575a3c5bcf7b5614 /src/utils/zlib.hpp | |
parent | 59df651232df73c56b5dae587fa68e1e9f824755 (diff) | |
download | manaserv-6b7441516002d6e7cca424416bb67c6bc7d7c9d2.tar.gz manaserv-6b7441516002d6e7cca424416bb67c6bc7d7c9d2.tar.bz2 manaserv-6b7441516002d6e7cca424416bb67c6bc7d7c9d2.tar.xz manaserv-6b7441516002d6e7cca424416bb67c6bc7d7c9d2.zip |
Simplified MapReader interface and code. Fixed some memory leaks.
Diffstat (limited to 'src/utils/zlib.hpp')
-rw-r--r-- | src/utils/zlib.hpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/utils/zlib.hpp b/src/utils/zlib.hpp new file mode 100644 index 00000000..330dd8ca --- /dev/null +++ b/src/utils/zlib.hpp @@ -0,0 +1,35 @@ +/* + * The Mana World + * Copyright 2006 The Mana World Development Team + * + * This file is part of The Mana World. + * + * The Mana World is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * The Mana World is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with The Mana World; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * $Id$ + */ + +#ifndef _TMWSERV_ZLIB +#define _TMWSERV_ZLIB + +/** + * Inflates either zlib or gzip deflated memory. The inflated memory is + * expected to be freed by the caller. Returns true if the inflation was + * sucessful. + */ +bool inflateMemory(char *in, unsigned inLength, + char *&out, unsigned &outLength); + +#endif |