SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
SLIOStream implementation for writing to browser local storage. More...
#include <SLIOLocalStorage.h>
Public Member Functions | |
SLIOWriterLocalStorage (std::string path) | |
void | flush () |
Public Member Functions inherited from SLIOWriterMemory | |
SLIOWriterMemory (std::string path) | |
size_t | write (const void *buffer, size_t size) |
size_t | tell () |
bool | seek (size_t offset, Origin origin) |
void | flush () |
Public Member Functions inherited from SLIOStream | |
virtual | ~SLIOStream ()=default |
virtual size_t | read (void *buffer, size_t size) |
virtual size_t | size () |
Additional Inherited Members | |
Public Types inherited from SLIOStream | |
enum | Origin { IOO_beg , IOO_cur , IOO_end } |
Protected Attributes inherited from SLIOWriterMemory | |
std::string | _path |
size_t | _position |
SLIOStream implementation for writing to browser local storage.
When calling flush, the memory is written from memory to local storage using the JavaScript API provided by the web browser.
Definition at line 41 of file SLIOLocalStorage.h.
SLIOWriterLocalStorage::SLIOWriterLocalStorage | ( | std::string | path | ) |
Definition at line 56 of file SLIOLocalStorage.cpp.
|
virtual |