cfile_struct Struct Reference

the structure of the actual file handle information we pass around More...


Data Fields

char * name
CFile_type filetype
union {
   gzFile *   gp
   FILE *   fp
   BZFILE *   bp
fileptr
char * buffer
int buflen
int bufpos


Detailed Description

the structure of the actual file handle information we pass around

This structure contains all the information we need to tote around to access the file, be it through zlib or bzlib or stdio.


Field Documentation

BZFILE* cfile_struct::bp

The bzip2 typed file pointer

char* cfile_struct::buffer

Used for buffering fgetc reads from bzip2 files

int cfile_struct::buflen

The length of the content in the buffer

int cfile_struct::bufpos

The current position of the next character

union { ... } cfile_struct::fileptr

The structure used to contain all the file pointers

CFile_type cfile_struct::filetype

The type of the file opened (see CFile_type)

FILE* cfile_struct::fp

The regular uncompressed file pointer

gzFile* cfile_struct::gp

< The various file pointers, all in one box The gzip typed pointer

char* cfile_struct::name

The name of the file opened


The documentation for this struct was generated from the following file:
Generated on Fri Jan 23 11:58:35 2009 for CFile by  doxygen 1.4.7