rlm@1: #ifndef MEMGZIO_H rlm@1: #define MEMGZIO_H rlm@1: rlm@1: /* gzio.c -- IO on .gz files rlm@1: * Copyright (C) 1995-2002 Jean-loup Gailly. rlm@1: * For conditions of distribution and use, see copyright notice in zlib.h rlm@1: * rlm@1: * Compile this file with -DNO_DEFLATE to avoid the compression code. rlm@1: */ rlm@1: rlm@1: /* memgzio.c - IO on .gz files in memory rlm@1: * Adapted from original gzio.c from zlib library by Forgotten rlm@1: */ rlm@1: rlm@1: #include rlm@1: rlm@1: gzFile ZEXPORT memgzopen(char *memory, int available, const char *mode); rlm@1: int ZEXPORT memgzread(gzFile file, voidp buf, unsigned len); rlm@1: int ZEXPORT memgzwrite(gzFile file, const voidp buf, unsigned len); rlm@1: int ZEXPORT memgzclose(gzFile file); rlm@1: long ZEXPORT memtell(gzFile file); rlm@1: rlm@1: #endif // MEMGZIO_H