OpenTTD Source: Fio Struct Reference

OpenTTD Source 1.11.0-RC1

Data Fields
Fio Struct Reference

Structure for keeping several open files with just one data buffer. More...

## Data Fields
byte * | buffer
byte * | buffer_end
| position pointer in local buffer and last valid byte of buffer
byte | buffer_start [FIO_BUFFER_SIZE]
| local buffer when read from file
size_t | pos
| current (system) position in file
FILE * | cur_fh
| current file handle
std::string | filename
| current filename
std::array< FILE *, MAX_FILE_SLOTS > | handles
| array of file handles we can have open
std::array< std::string, MAX_FILE_SLOTS > | filenames
| array of filenames we (should) have open
std::array< std::string, MAX_FILE_SLOTS > | shortnames
| array of short names for spriteloader's use

## Detailed Description

Structure for keeping several open files with just one data buffer.

Definition at line 36 of file fileio.cpp.

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

- src/fileio.cpp