![]() |
SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
SLIOStream implementation for reading from browser local storage. More...
#include <SLIOLocalStorage.h>
Public Member Functions | |
SLIOReaderLocalStorage (std::string path) | |
~SLIOReaderLocalStorage () | |
![]() | |
SLIOReaderMemory (std::string path) | |
size_t | read (void *buffer, size_t size) |
size_t | tell () |
bool | seek (size_t offset, Origin origin) |
size_t | size () |
![]() | |
virtual | ~SLIOStream ()=default |
virtual size_t | write (const void *buffer, size_t size) |
virtual void | flush () |
Additional Inherited Members | |
![]() | |
enum | Origin { IOO_beg , IOO_cur , IOO_end } |
![]() | |
std::string | _path |
size_t | _position |
SLIOStream implementation for reading from browser local storage.
The constructor loads the file from local storage into memory using the JavaScript API provided by the web browser.
Definition at line 29 of file SLIOLocalStorage.h.
SLIOReaderLocalStorage::SLIOReaderLocalStorage | ( | std::string | path | ) |
Definition at line 25 of file SLIOLocalStorage.cpp.
SLIOReaderLocalStorage::~SLIOReaderLocalStorage | ( | ) |
Definition at line 51 of file SLIOLocalStorage.cpp.