kanzi::File Class Referenceabstract

#include <kanzi/core/file/file.hpp>

Inheritance diagram for kanzi::File:
kanzi::ReadOnlyDiskFile kanzi::ReadOnlyMemoryFile

Public Types

enum  SeekPosition { SeekBegin, SeekCurrent }
 

Public Member Functions

virtual ~File ()
 
virtual void read (char *buffer, uint64_t count)=0
 
virtual void write (const char *buffer, uint64_t count)=0
 
virtual uint64_t size () const =0
 
virtual uint64_t tell () const =0
 
virtual void seek (SeekPosition, int64_t offset)=0
 
virtual const bytemap ()=0
 

Protected Member Functions

 File ()
 

Member Enumeration Documentation

Enumerator
SeekBegin 
SeekCurrent 

Constructor & Destructor Documentation

virtual kanzi::File::~File ( )
inlinevirtual
kanzi::File::File ( )
inlineexplicitprotected

Member Function Documentation

virtual void kanzi::File::read ( char *  buffer,
uint64_t  count 
)
pure virtual
virtual void kanzi::File::write ( const char *  buffer,
uint64_t  count 
)
pure virtual
virtual uint64_t kanzi::File::size ( ) const
pure virtual
virtual uint64_t kanzi::File::tell ( ) const
pure virtual
virtual void kanzi::File::seek ( SeekPosition  ,
int64_t  offset 
)
pure virtual
virtual const byte* kanzi::File::map ( )
pure virtual

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