mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-29 22:14:17 +01:00
24 lines
686 B
C
24 lines
686 B
C
#ifndef MEMGZIO_H
|
|
#define MEMGZIO_H
|
|
|
|
/* 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>
|
|
|
|
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);
|
|
|
|
#endif // MEMGZIO_H
|