Public Methods | |
struct FileInput* | FileInput_ctor (struct FileInput *ptr_file_input) |
struct FileInput* | FileInput_ctor_Ex (struct FileInput *ptr_file_input, char *sz_file_name) |
bool | FileInput_open (struct FileInput *ptr_file_input, char *sz_file_name) |
long | FileInput_seek (struct FileInput *ptr_file_input, long pos, seek_t mode) |
long | FileInput_tell (struct FileInput *ptr_file_input) |
void | FileInput_dtor (struct FileInput *ptr_file_input, int memory_flag) |
long | FileInput_read (struct FileInput *ptr_file_input, void *ptr_buffer, long length) |
int | FileInput_read_byte (struct FileInput *ptr_file_input) |
long | FileInput_seekg (struct FileInput *ptr_file_input, long pos, seek_t mode) |
long | FileInput_tellg (struct FileInput *ptr_file_input) |
long | FileInput_get_size (struct FileInput *ptr_file_input) |
int | FileInput_get_flags (struct FileInput *ptr_file_input) |
bool | FileInput_is_eof (struct FileInput *ptr_file_input) |
bool | FileInput_is_bad (struct FileInput *ptr_file_input) |
bool | FileInput_is_good (struct FileInput *ptr_file_input) |
Implements basic file input operations. Attempting to open or construct FileInput for a non-existing file will corrupt the file (FileInput_is_bad returns TRUE)
|
Creates an empty input file stream object.
|
|
Creates an input file stream object for a file with the specified name.
|
|
Destructor.
|
|
Returns the stream's current state.
|
|
Returns the stream size (if applicable).
|
|
Returns TRUE if the BAD flag is set (stream is bad).
|
|
Returns TRUE if the EOF flag is set (stream reached end-of-file).
|
|
Returns TRUE if the BAD flag is not set (stream is good).
|
|
Opens an input stream for the file with the specified name.
|
|
Reads a specified number of bytes from the stream.
|
|
Reads the next byte from the stream.
|
|
Seeks to the specified position, then returns the sought position.
|
|
Seeks an input stream.
|
|
Returns the stream's current position.
|
|
Returns the stream's position.
|
Copyright © 2001 Cybiko, Inc. All rights reserved. | More information... |