Object capable streaming file contents.
More...
#include <Coherent/renoir/include/RenoirCore/CoherentRenderingLibrary.h>
|
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.
|
|
Object capable streaming file contents.
◆ 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
-
offset | the position at which to begin reading |
buffer | pointer to the buffer where to copy the file contents |
count | number of bytes to read |
- Returns
- number of bytes successfully read