DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
qfile_t Struct Reference
+ Collaboration diagram for qfile_t:

Data Fields

unsigned char buff [FILE_BUFF_SIZE]
 
fs_offset_t buff_ind
 
fs_offset_t buff_len
 buffer current index and length
 
const unsigned char * data
 For data files.
 
const char * filename
 Kept around for QFILE_FLAG_REMOVE, unused otherwise.
 
int flags
 
filedesc_t handle
 file descriptor
 
fs_offset_t offset
 offset into the package (0 if external file)
 
fs_offset_t position
 current position in the file
 
fs_offset_t real_length
 uncompressed file size (for files opened in "read" mode)
 
int ungetc
 single stored character from ungetc, cleared to EOF when read
 
ztoolkit_tztk
 For zipped files.
 

Detailed Description

Definition at line 312 of file fs.c.

Field Documentation

◆ buff

unsigned char qfile_t::buff[FILE_BUFF_SIZE]

Definition at line 323 of file fs.c.

◆ buff_ind

fs_offset_t qfile_t::buff_ind

Definition at line 322 of file fs.c.

◆ buff_len

fs_offset_t qfile_t::buff_len

buffer current index and length

Definition at line 322 of file fs.c.

◆ data

const unsigned char* qfile_t::data

For data files.

Definition at line 327 of file fs.c.

◆ filename

const char* qfile_t::filename

Kept around for QFILE_FLAG_REMOVE, unused otherwise.

Definition at line 329 of file fs.c.

◆ flags

int qfile_t::flags

Definition at line 314 of file fs.c.

◆ handle

filedesc_t qfile_t::handle

file descriptor

Definition at line 315 of file fs.c.

◆ offset

fs_offset_t qfile_t::offset

offset into the package (0 if external file)

Definition at line 318 of file fs.c.

◆ position

fs_offset_t qfile_t::position

current position in the file

Definition at line 317 of file fs.c.

◆ real_length

fs_offset_t qfile_t::real_length

uncompressed file size (for files opened in "read" mode)

Definition at line 316 of file fs.c.

◆ ungetc

int qfile_t::ungetc

single stored character from ungetc, cleared to EOF when read

Definition at line 319 of file fs.c.

◆ ztk

ztoolkit_t* qfile_t::ztk

For zipped files.

Definition at line 325 of file fs.c.


The documentation for this struct was generated from the following file: