open_toontown_panda3d/panda/src/express/compress_string.h

46 lines
1.0 KiB
C

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file compress_string.h
* @author drose
* @date 2009-08-09
*/
#ifndef COMPRESS_STRING_H
#define COMPRESS_STRING_H
#include "pandabase.h"
#ifdef HAVE_ZLIB
#include "filename.h"
BEGIN_PUBLISH
EXPCL_PANDAEXPRESS string
compress_string(const string &source, int compression_level);
EXPCL_PANDAEXPRESS string
decompress_string(const string &source);
EXPCL_PANDAEXPRESS bool
compress_file(const Filename &source, const Filename &dest, int compression_level);
EXPCL_PANDAEXPRESS bool
decompress_file(const Filename &source, const Filename &dest);
EXPCL_PANDAEXPRESS bool
compress_stream(istream &source, ostream &dest, int compression_level);
EXPCL_PANDAEXPRESS bool
decompress_stream(istream &source, ostream &dest);
END_PUBLISH
#endif // HAVE_ZLIB
#endif