IDAPython 9.0
|
Public Member Functions | |
__init__ (self, *args) | |
opened (self) | |
close (self) | |
open (self, filename, mode) | |
'FILE *' | get_fp (self) |
seek (self, offset, whence=ida_idaapi.SEEK_SET) | |
tell (self) | |
readbytes (self, size, big_endian) | |
read (self, size) | |
gets (self, len) | |
writebytes (self, size, big_endian) | |
write (self, buf) | |
int | puts (self, str str) |
'int64' | size (self) |
flush (self) | |
'PyObject *' | filename (self) |
get_byte (self) | |
put_byte (self) | |
Static Public Member Functions | |
'qfile_t *' | from_fp ('FILE *' fp) |
'qfile_t *' | from_capsule ('PyObject *' pycapsule) |
tmpfile () | |
Properties | |
thisown | |
A helper class to work with FILE related functions.
__init__ | ( | self, | |
* | args ) |
close | ( | self | ) |
Closes the file
'PyObject *' filename | ( | self | ) |
flush | ( | self | ) |
|
static |
|
static |
get_byte | ( | self | ) |
Reads a single byte from the file. Returns None if EOF or the read byte
'FILE *' get_fp | ( | self | ) |
gets | ( | self, | |
len ) |
Reads a line from the input file. Returns the read line or None @param len: the maximum line length
open | ( | self, | |
filename, | |||
mode ) |
Opens a file @param filename: the file name @param mode: The mode string, ala fopen() style @return: Boolean
opened | ( | self | ) |
Checks if the file is opened or not
put_byte | ( | self | ) |
Writes a single byte to the file @param chr: the byte value
int puts | ( | self, | |
str | str ) |
read | ( | self, | |
size ) |
Reads from the file. Returns the buffer or None @param size: the maximum number of bytes to read @return: a str, or None
readbytes | ( | self, | |
size, | |||
big_endian ) |
Similar to read() but it respect the endianness @param size: the maximum number of bytes to read @param big_endian: endianness @return a str, or None
seek | ( | self, | |
offset, | |||
whence = ida_idaapi.SEEK_SET ) |
Set input source position @param offset: the seek offset @param whence: the position to seek from @return: the new position (not 0 as fseek!)
'int64' size | ( | self | ) |
tell | ( | self | ) |
Returns the current position
|
static |
A static method to construct an instance using a temporary file
write | ( | self, | |
buf ) |
Writes to the file. Returns 0 or the number of bytes written @param buf: the str to write @return: result code
writebytes | ( | self, | |
size, | |||
big_endian ) |
Similar to write() but it respect the endianness @param buf: the str to write @param big_endian: endianness @return: result code
|
static |