annotate src/common/memgzio.h @ 268:82ee2704c973

Since the game uses zeros as delimiters in the evolution/learnset section, it increments all of the move/pokemon indices by 1. Altered my code so that all returned values are consistently non-incremented.
author Dylan Holmes <ocsenave@gmail.com>
date Mon, 26 Mar 2012 23:25:18 -0500
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 #ifndef MEMGZIO_H
rlm@1 2 #define MEMGZIO_H
rlm@1 3
rlm@1 4 /* gzio.c -- IO on .gz files
rlm@1 5 * Copyright (C) 1995-2002 Jean-loup Gailly.
rlm@1 6 * For conditions of distribution and use, see copyright notice in zlib.h
rlm@1 7 *
rlm@1 8 * Compile this file with -DNO_DEFLATE to avoid the compression code.
rlm@1 9 */
rlm@1 10
rlm@1 11 /* memgzio.c - IO on .gz files in memory
rlm@1 12 * Adapted from original gzio.c from zlib library by Forgotten
rlm@1 13 */
rlm@1 14
rlm@1 15 #include <zlib.h>
rlm@1 16
rlm@1 17 gzFile ZEXPORT memgzopen(char *memory, int available, const char *mode);
rlm@1 18 int ZEXPORT memgzread(gzFile file, voidp buf, unsigned len);
rlm@1 19 int ZEXPORT memgzwrite(gzFile file, const voidp buf, unsigned len);
rlm@1 20 int ZEXPORT memgzclose(gzFile file);
rlm@1 21 long ZEXPORT memtell(gzFile file);
rlm@1 22
rlm@1 23 #endif // MEMGZIO_H