Loading...
Searching...
No Matches
FileAccessor

Detailed Description

Classes

class  BinaryNinja::FileAccessor
 
class  BinaryNinja::CoreFileAccessor
 

Class Documentation

◆ BinaryNinja::FileAccessor

class BinaryNinja::FileAccessor

Public Member Functions

 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
 

Protected Attributes

BNFileAccessor m_callbacks
 

Constructor & Destructor Documentation

◆ FileAccessor() [1/2]

FileAccessor::FileAccessor ( )

◆ FileAccessor() [2/2]

FileAccessor::FileAccessor ( BNFileAccessor * accessor)

◆ ~FileAccessor()

virtual BinaryNinja::FileAccessor::~FileAccessor ( )
inlinevirtual

Member Function Documentation

◆ GetCallbacks()

BNFileAccessor * BinaryNinja::FileAccessor::GetCallbacks ( )
inline

◆ IsValid()

virtual bool BinaryNinja::FileAccessor::IsValid ( ) const
pure virtual

◆ GetLength()

virtual uint64_t BinaryNinja::FileAccessor::GetLength ( ) const
pure virtual

◆ Read()

virtual size_t BinaryNinja::FileAccessor::Read ( void * dest,
uint64_t offset,
size_t len )
pure virtual

◆ Write()

virtual size_t BinaryNinja::FileAccessor::Write ( uint64_t offset,
const void * src,
size_t len )
pure virtual

Member Data Documentation

◆ m_callbacks

BNFileAccessor BinaryNinja::FileAccessor::m_callbacks
protected

◆ BinaryNinja::CoreFileAccessor

class BinaryNinja::CoreFileAccessor

Public Member Functions

 CoreFileAccessor (BNFileAccessor *accessor)
 
virtual bool IsValid () const override
 
virtual uint64_t GetLength () const override
 
virtual size_t Read (void *dest, uint64_t offset, size_t len) override
 
virtual size_t Write (uint64_t offset, const void *src, size_t len) override
 
- Public Member Functions inherited from BinaryNinja::FileAccessor
 FileAccessor ()
 
 FileAccessor (BNFileAccessor *accessor)
 
virtual ~FileAccessor ()
 
BNFileAccessorGetCallbacks ()
 

Additional Inherited Members

- Protected Attributes inherited from BinaryNinja::FileAccessor
BNFileAccessor m_callbacks
 

Constructor & Destructor Documentation

◆ CoreFileAccessor()

CoreFileAccessor::CoreFileAccessor ( BNFileAccessor * accessor)

Member Function Documentation

◆ IsValid()

virtual bool BinaryNinja::CoreFileAccessor::IsValid ( ) const
inlineoverridevirtual

◆ GetLength()

uint64_t CoreFileAccessor::GetLength ( ) const
overridevirtual

◆ Read()

size_t CoreFileAccessor::Read ( void * dest,
uint64_t offset,
size_t len )
overridevirtual

◆ Write()

size_t CoreFileAccessor::Write ( uint64_t offset,
const void * src,
size_t len )
overridevirtual