storage.h (264B)
1 #include <string> 2 #include <fstream> 3 #include <emscripten/fetch.h> 4 5 namespace storage { 6 bool read(std::string key, size_t data_size, char *data); 7 bool write(std::string key, size_t data_size, const char *data); 8 int download(std::string key, std::string url); 9 }