2009-12-02 23:26:44 +01:00
|
|
|
#ifndef MEMGZIO_H
|
|
|
|
#define MEMGZIO_H
|
|
|
|
|
2008-09-14 22:40:26 +02:00
|
|
|
/* gzio.c -- IO on .gz files
|
|
|
|
* Copyright (C) 1995-2002 Jean-loup Gailly.
|
|
|
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
|
|
*
|
|
|
|
* Compile this file with -DNO_DEFLATE to avoid the compression code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* memgzio.c - IO on .gz files in memory
|
|
|
|
* Adapted from original gzio.c from zlib library by Forgotten
|
|
|
|
*/
|
|
|
|
|
2009-12-02 23:26:44 +01:00
|
|
|
#include <zlib.h>
|
2009-01-08 08:35:44 +01:00
|
|
|
|
2009-12-02 23:26:44 +01:00
|
|
|
gzFile ZEXPORT memgzopen(char *memory, int available, const char *mode);
|
|
|
|
int ZEXPORT memgzread(gzFile file, voidp buf, unsigned len);
|
|
|
|
int ZEXPORT memgzwrite(gzFile file, const voidp buf, unsigned len);
|
|
|
|
int ZEXPORT memgzclose(gzFile file);
|
|
|
|
long ZEXPORT memtell(gzFile file);
|
2009-01-08 08:35:44 +01:00
|
|
|
|
2009-12-02 23:26:44 +01:00
|
|
|
#endif // MEMGZIO_H
|