| IDA SDK

Public Member Functions | List of all members
generic_linput_t Struct Referenceabstract

## Detailed Description

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

## 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. More...

## Public Member Functions
virtual ssize_t idaapi | read (qoff64_t off, void *buffer, size_t nbytes)=0

## Member Data Documentation

## ◆ 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:

- diskio.hpp