1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
12 unsigned long int os_zlib_compress(const char *src, char *dst, unsigned long int src_size,
13 unsigned long int dst_size)
15 if(compress2((Bytef *)dst,
19 Z_BEST_COMPRESSION) == Z_OK)
29 unsigned long int os_zlib_uncompress(const char *src, char *dst, unsigned long int src_size,
30 unsigned long int dst_size)
32 if(uncompress((Bytef *)dst,