SLIOStream implementation for reading from native files.
More...
#include <SLIONative.h>
SLIOStream implementation for reading from native files.
Definition at line 18 of file SLIONative.h.
◆ SLIOReaderNative()
SLIOReaderNative::SLIOReaderNative |
( |
std::string |
path | ) |
|
◆ read()
size_t SLIOReaderNative::read |
( |
void * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
virtual |
◆ seek()
bool SLIOReaderNative::seek |
( |
size_t |
offset, |
|
|
Origin |
origin |
|
) |
| |
|
virtual |
Reimplemented from SLIOStream.
Definition at line 31 of file SLIONative.cpp.
33 std::ios::seekdir nativeOrigin = std::ios::beg;
35 nativeOrigin = std::ios::beg;
37 nativeOrigin = std::ios::cur;
39 nativeOrigin = std::ios::end;
41 return (
bool)
_stream.seekg((std::streamsize)offset, nativeOrigin);
◆ size()
size_t SLIOReaderNative::size |
( |
| ) |
|
|
virtual |
◆ tell()
size_t SLIOReaderNative::tell |
( |
| ) |
|
|
virtual |
◆ _stream
std::ifstream SLIOReaderNative::_stream |
|
private |
The documentation for this class was generated from the following files: