1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
/*
AVFS: A Virtual File System Library
Copyright (C) 2000-2001 Miklos Szeredi <miklos@szeredi.hu>
This program can be distributed under the terms of the GNU GPL.
See the file COPYING.
*/
#include "avfs.h"
struct zfile;
struct zcache;
avssize_t av_zfile_pread(struct zfile *fil, struct zcache *zc, char *buf,
avsize_t nbyte, avoff_t offset);
int av_zfile_size(struct zfile *fil, struct zcache *zc, avoff_t *sizep);
enum av_zfile_data_type {
AV_ZFILE_DATA_PLAIN,
AV_ZFILE_DATA_GZIP_ENCAPSULATED
};
struct zfile *av_zfile_new(vfile *vf, avoff_t dataoff, avuint crc, enum av_zfile_data_type data_type);
struct zcache *av_zcache_new();
avoff_t av_zcache_size(struct zcache *zc);
|