IDA C++ SDK 9.2
Loading...
Searching...
No Matches
generic_linput_t Struct Referenceabstract

Generic linput class - may be used to create a linput_t instance for any data source. More...

#include <diskio.hpp>

Public Member Functions

virtual ssize_t idaapi read (qoff64_t off, void *buffer, size_t nbytes)=0
virtual ~generic_linput_t ()

Public Attributes

Warning

The following two fields must be filled before calling create_generic_linput()

uint64 filesize
 input file size
uint32 blocksize
 preferred block size to work with read/write sizes will be in multiples of this number.

Detailed Description

Generic linput class - may be used to create a linput_t instance for any data source.

Constructor & Destructor Documentation

◆ ~generic_linput_t()

virtual generic_linput_t::~generic_linput_t ( )
inlinevirtual

Member Function Documentation

◆ read()

virtual ssize_t idaapi generic_linput_t::read ( qoff64_t off,
void * buffer,
size_t nbytes )
pure virtual

Member Data Documentation

◆ filesize

uint64 generic_linput_t::filesize

input file size

◆ blocksize

uint32 generic_linput_t::blocksize

preferred block size to work with read/write sizes will be in multiples of this number.

for example, 4096 is a nice value blocksize 0 means that the filesize is unknown. the internal cache will be disabled in this case. also, seeks from the file end will fail. blocksize=-1 means error.


The documentation for this struct was generated from the following file: