Proxy of C++ loader_input_t class.
A helper class to work with linput_t related functions. This class is
also used by file loaders scripts.
loader_input_t
|
__init__(self,
pycapsule=None)
Closes the file |
|
|
|
|
|
|
|
|
int
|
file2base(self,
pos,
ea1,
ea2,
patchable)
Load portion of file into the database This function will include
(ea1..ea2) into the addressing space of the program (make it enabled) |
|
|
PyObject *
|
|
PyObject *
|
|
linput_t *
|
|
PyObject *
|
gets(self,
len)
Reads a line from the input file. |
|
|
PyObject *
|
getz(self,
sz,
fpos=-1)
Returns a zero terminated string at the given position |
|
|
bool
|
open(self,
filename,
remote=False)
Opens a file (or a remote file) |
|
|
bool
|
open_memory(self,
start,
size=0)
Create a linput for process memory (By internally calling
idaapi.create_memory_linput()) This linput will use
dbg->read_memory() to read data |
|
|
bool
|
opened(self)
Checks if the file is opened or not |
|
|
PyObject *
|
read(self,
size)
Reads from the file. |
|
|
PyObject *
|
readbytes(self,
size,
big_endian)
Similar to read() but it respect the endianness |
|
|
int64
|
seek(self,
pos,
whence=SEEK_SET)
Set input source position |
|
|
|
set_linput(self,
linput)
Links the current loader_input_t instance to a linput_t instance |
|
|
int64
|
|
int64
|
tell(self)
Returns the current position |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|