kanzi::ReadOnlyMemoryFile Class Reference

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

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

Public Member Functions

 ReadOnlyMemoryFile (const byte *buffer, uint64_t size)
 
virtual ~ReadOnlyMemoryFile () KZ_OVERRIDE
 
virtual void read (char *buffer, uint64_t count) KZ_OVERRIDE
 
virtual void write (const char *, uint64_t) KZ_OVERRIDE
 
virtual uint64_t size () const KZ_OVERRIDE
 
virtual uint64_t tell () const KZ_OVERRIDE
 
virtual void seek (SeekPosition position, int64_t offset) KZ_OVERRIDE
 
virtual const bytemap () KZ_OVERRIDE
 
- Public Member Functions inherited from kanzi::File
virtual ~File ()
 

Additional Inherited Members

- Public Types inherited from kanzi::File
enum  SeekPosition { SeekBegin, SeekCurrent }
 
- Protected Member Functions inherited from kanzi::File
 File ()
 

Constructor & Destructor Documentation

kanzi::ReadOnlyMemoryFile::ReadOnlyMemoryFile ( const byte buffer,
uint64_t  size 
)
inlineexplicit
virtual kanzi::ReadOnlyMemoryFile::~ReadOnlyMemoryFile ( )
inlinevirtual

Member Function Documentation

virtual void kanzi::ReadOnlyMemoryFile::read ( char *  buffer,
uint64_t  count 
)
inlinevirtual

Implements kanzi::File.

virtual void kanzi::ReadOnlyMemoryFile::write ( const char *  ,
uint64_t   
)
inlinevirtual

Implements kanzi::File.

virtual uint64_t kanzi::ReadOnlyMemoryFile::size ( ) const
inlinevirtual

Implements kanzi::File.

virtual uint64_t kanzi::ReadOnlyMemoryFile::tell ( ) const
inlinevirtual

Implements kanzi::File.

virtual void kanzi::ReadOnlyMemoryFile::seek ( SeekPosition  position,
int64_t  offset 
)
inlinevirtual

Implements kanzi::File.

virtual const byte* kanzi::ReadOnlyMemoryFile::map ( )
inlinevirtual

Implements kanzi::File.


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