QFileAccessor

Detailed Description

Classes

class  QFileAccessor
 

Class Documentation

◆ QFileAccessor

class QFileAccessor

Public Member Functions

 QFileAccessor (const QString &name, bool write=false)
 
virtual ~QFileAccessor ()
 
virtual bool IsValid () const
 
virtual QString GetError () const
 
virtual uint64_t GetLength () const
 
virtual size_t Read (void *dest, uint64_t offset, size_t len)
 
virtual size_t Write (uint64_t offset, const void *src, size_t len)
 
void Close ()
 
- Public Member Functions inherited from BinaryNinja::FileAccessor
 FileAccessor ()
 
 FileAccessor (BNFileAccessor *accessor)
 
virtual ~FileAccessor ()
 
BNFileAccessorGetCallbacks ()
 
virtual bool IsValid () const =0
 
virtual uint64_t GetLength () const =0
 
virtual size_t Read (void *dest, uint64_t offset, size_t len)=0
 
virtual size_t Write (uint64_t offset, const void *src, size_t len)=0
 

Additional Inherited Members

- Protected Attributes inherited from BinaryNinja::FileAccessor
BNFileAccessor m_callbacks
 

Constructor & Destructor Documentation

◆ QFileAccessor()

QFileAccessor::QFileAccessor ( const QString &  name,
bool  write = false 
)

◆ ~QFileAccessor()

virtual QFileAccessor::~QFileAccessor ( )
virtual

Member Function Documentation

◆ IsValid()

virtual bool QFileAccessor::IsValid ( ) const
virtual

◆ GetError()

virtual QString QFileAccessor::GetError ( ) const
virtual

◆ GetLength()

virtual uint64_t QFileAccessor::GetLength ( ) const
virtual

◆ Read()

virtual size_t QFileAccessor::Read ( void *  dest,
uint64_t  offset,
size_t  len 
)
virtual

◆ Write()

virtual size_t QFileAccessor::Write ( uint64_t  offset,
const void *  src,
size_t  len 
)
virtual

◆ Close()

void QFileAccessor::Close ( )