Wing Commander
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
ixfile.cpp File Reference

stdio wrappers used by the streamer and its thread. More...

#include "ix.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

void ix_file_init_hook (void)
void ix_file_shutdown_hook (void)
FILE * ix_file_open (const char *path, int mode)
void ix_file_close (FILE *file)
void ix_file_seek (FILE *file, long position)
long ix_file_tell (FILE *file)
unsigned int ix_file_read (FILE *file, void *destination, unsigned int bytes)
unsigned int ix_file_write (FILE *file, const void *source, unsigned int bytes)
long ix_file_size (FILE *file)

Detailed Description

stdio wrappers used by the streamer and its thread.

Address range 461630-4617bf. A separate object from the LZO decoder before it: the linker pads to its 16-byte boundary with INT3 between the two, in WC1 and WC2 alike. Like the decoder it came from a library of its own, pulled only on LINK's second search pass.

Definition in file ixfile.cpp.

Function Documentation

◆ ix_file_close()

void ix_file_close ( FILE * file)

Definition at line 44 of file ixfile.cpp.

References ix_file_close().

Referenced by ix_file_close(), ix_streamer_close_file(), and ix_streamer_close_stream_file().

◆ ix_file_init_hook()

void ix_file_init_hook ( void )

Definition at line 20 of file ixfile.cpp.

References ix_file_init_hook().

Referenced by ix_file_init_hook().

◆ ix_file_open()

FILE * ix_file_open ( const char * path,
int mode )

Definition at line 30 of file ixfile.cpp.

References ix_file_open().

Referenced by ix_file_open(), ix_streamer_open_file(), and ix_streamer_open_stream_file().

◆ ix_file_read()

unsigned int ix_file_read ( FILE * file,
void * destination,
unsigned int bytes )

◆ ix_file_seek()

void ix_file_seek ( FILE * file,
long position )

◆ ix_file_shutdown_hook()

void ix_file_shutdown_hook ( void )

Definition at line 25 of file ixfile.cpp.

References ix_file_shutdown_hook().

Referenced by ix_file_shutdown_hook().

◆ ix_file_size()

long ix_file_size ( FILE * file)

Definition at line 76 of file ixfile.cpp.

References ix_file_size().

Referenced by ix_file_size(), and ix_streamer_open_file().

◆ ix_file_tell()

long ix_file_tell ( FILE * file)

Definition at line 56 of file ixfile.cpp.

References ix_file_tell().

Referenced by ix_file_tell(), and ix_thread_handle_file_chunk().

◆ ix_file_write()

unsigned int ix_file_write ( FILE * file,
const void * source,
unsigned int bytes )

Definition at line 69 of file ixfile.cpp.

References ix_file_write().

Referenced by ix_file_write().