Mercurial > vba-linux
diff src/common/memgzio.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/common/memgzio.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,23 @@ 1.4 +#ifndef MEMGZIO_H 1.5 +#define MEMGZIO_H 1.6 + 1.7 +/* gzio.c -- IO on .gz files 1.8 + * Copyright (C) 1995-2002 Jean-loup Gailly. 1.9 + * For conditions of distribution and use, see copyright notice in zlib.h 1.10 + * 1.11 + * Compile this file with -DNO_DEFLATE to avoid the compression code. 1.12 + */ 1.13 + 1.14 +/* memgzio.c - IO on .gz files in memory 1.15 + * Adapted from original gzio.c from zlib library by Forgotten 1.16 + */ 1.17 + 1.18 +#include <zlib.h> 1.19 + 1.20 +gzFile ZEXPORT memgzopen(char *memory, int available, const char *mode); 1.21 +int ZEXPORT memgzread(gzFile file, voidp buf, unsigned len); 1.22 +int ZEXPORT memgzwrite(gzFile file, const voidp buf, unsigned len); 1.23 +int ZEXPORT memgzclose(gzFile file); 1.24 +long ZEXPORT memtell(gzFile file); 1.25 + 1.26 +#endif // MEMGZIO_H