2.9.16
Coherent GT
A modern user interface library for games
renoir::IStreamReader Class Referenceabstract

Object capable streaming file contents. More...

#include <Coherent/renoir/include/RenoirCore/CoherentRenderingLibrary.h>

+ Inheritance diagram for renoir::IStreamReader:

Public Member Functions

virtual unsigned GetSize ()=0
 Returns the file size. More...
 
virtual unsigned Read (unsigned offset, unsigned char *buffer, unsigned count)=0
 Reads count bytes into buffer starting from offset. More...
 
virtual void Close ()=0
 Marks this object as closed - it will no longer be used and its memory should be freed.
 

Detailed Description

Object capable streaming file contents.

Member Function Documentation

◆ GetSize()

virtual unsigned renoir::IStreamReader::GetSize ( )
pure virtual

Returns the file size.

Returns
file size

◆ Read()

virtual unsigned renoir::IStreamReader::Read ( unsigned  offset,
unsigned char *  buffer,
unsigned  count 
)
pure virtual

Reads count bytes into buffer starting from offset.

Parameters
offsetthe position at which to begin reading
bufferpointer to the buffer where to copy the file contents
countnumber of bytes to read
Returns
number of bytes successfully read