vbagx/source/vba/common/memgzio.h

24 lines
686 B
C
Raw Normal View History

#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
*/
#include <zlib.h>
2009-01-08 08:35: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
#endif // MEMGZIO_H