Proxy of C++ qfile_t class.
A helper class to work with FILE related functions.
qfile_t
|
__init__(self,
rhs)
__init__(self, pycapsule=None) -> qfile_t |
|
|
|
|
|
|
|
|
PyObject *
|
|
int
|
flush(self)
Reads a single byte from the file. |
|
|
PyObject *
|
|
FILE *
|
|
PyObject *
|
gets(self,
size)
Reads a line from the input file. |
|
|
bool
|
open(self,
filename,
mode)
Opens a file |
|
|
bool
|
opened(self)
Checks if the file is opened or not |
|
|
int
|
|
int
|
|
PyObject *
|
read(self,
size)
Reads from the file. |
|
|
PyObject *
|
readbytes(self,
size,
big_endian)
Similar to read() but it respect the endianness |
|
|
int
|
seek(self,
offset,
whence=SEEK_SET)
Set input source position |
|
|
int64
|
|
int64
|
tell(self)
Returns the current position |
|
|
int
|
write(self,
py_buf)
Writes to the file. |
|
|
int
|
writebytes(self,
py_buf,
big_endian)
Similar to write() but it respect the endianness |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|