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
15 #include "../external/zlib-1.2.11/zlib.h"
18 unsigned long int os_zlib_compress(const char *src, char *dst,
19 unsigned long int src_size,
20 unsigned long int dst_size)
22 if (compress2((Bytef *)dst,
26 Z_BEST_COMPRESSION) == Z_OK) {
34 unsigned long int os_zlib_uncompress(const char *src, char *dst,
35 unsigned long int src_size,
36 unsigned long int dst_size)
38 if (uncompress((Bytef *)dst,