A helper class to work with FILE related functions.
|
|
|
|
|
close(self)
Closes the file |
|
|
|
|
open(self,
filename,
mode)
Opens a file |
|
|
|
|
set_linput(self,
linput)
Links the current loader_input_t instance to a linput_t instance |
|
|
|
|
seek(self,
pos,
whence=SEEK_SET)
Set input source position |
|
|
|
|
tell(self)
Returns the current position |
|
|
|
|
gets(self,
len)
Reads a line from the input file. |
|
|
|
|
read(self,
size)
Reads from the file. |
|
|
|
|
write(self,
buf)
Writes to the file. |
|
|
|
|
readbytes(self,
size,
big_endian)
Similar to read() but it respect the endianness |
|
|
|
|
writebytes(self,
size,
big_endian)
Similar to write() but it respect the endianness |
|
|
|
|
|
|
|
get_char(self)
Reads a single character from the file. |
|
|
|
|
put_char(self)
Writes a single character to the file |
|
|
|
|
opened(self)
Checks if the file is opened or not |
|
|