SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
Interface for accessing external data using streams. More...
#include <SLFileStorage.h>
Public Types | |
enum | Origin { IOO_beg , IOO_cur , IOO_end } |
Public Member Functions | |
virtual | ~SLIOStream ()=default |
virtual size_t | read (void *buffer, size_t size) |
virtual size_t | write (const void *buffer, size_t size) |
virtual size_t | tell () |
virtual bool | seek (size_t offset, Origin origin) |
virtual size_t | size () |
virtual void | flush () |
Interface for accessing external data using streams.
SLIOStream provides an interface to access files which may be stored in the native file system, on a remote server, in memory, etc. Streams should not be instantiated by users of the class, but by SLFileStorage::open, which selects the appropriate stream implementation for a given kind and mode.
Definition at line 61 of file SLFileStorage.h.
enum SLIOStream::Origin |
|
virtualdefault |
|
inlinevirtual |
Reimplemented in SLIOWriterNative, SLIOWriterMemory, SLIOWriterLocalStorage, and SLIOWriterBrowserPopup.
Definition at line 77 of file SLFileStorage.h.
|
inlinevirtual |
Reimplemented in SLIOReaderNative, and SLIOReaderMemory.
Definition at line 72 of file SLFileStorage.h.
|
inlinevirtual |
Reimplemented in SLIOWriterNative, SLIOReaderNative, SLIOWriterMemory, and SLIOReaderMemory.
Definition at line 75 of file SLFileStorage.h.
|
inlinevirtual |
Reimplemented in SLIOReaderNative, and SLIOReaderMemory.
Definition at line 76 of file SLFileStorage.h.
|
inlinevirtual |
Reimplemented in SLIOWriterNative, SLIOReaderNative, SLIOWriterMemory, and SLIOReaderMemory.
Definition at line 74 of file SLFileStorage.h.
|
inlinevirtual |
Reimplemented in SLIOWriterNative, and SLIOWriterMemory.
Definition at line 73 of file SLFileStorage.h.