1 /* gzio.c -- IO on .gz files 2 * Copyright (C) 1995-2002 Jean-loup Gailly. 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 * 5 * Compile this file with -DNO_DEFLATE to avoid the compression code. 6 */ 7 8 /* memgzio.c - IO on .gz files in memory 9 * Adapted from original gzio.c from zlib library by Forgotten 10 */ 11 #ifndef HAVE_ZUTIL_H 12 #include "../win32/include/zlib/zutil.h" 13 #else 14 #include <zutil.h> 15 #endif 16 17 gzFile ZEXPORT memgzopen(char *memory, int, const char *); 18 int ZEXPORT memgzread(gzFile, voidp, unsigned); 19 int ZEXPORT memgzwrite(gzFile, const voidp, unsigned); 20 int ZEXPORT memgzclose(gzFile); 21 long ZEXPORT memtell(gzFile); 22