MCPcopy Create free account
hub / github.com/bcndev/bytecoin / AsyncIndexDBOperation

Method AsyncIndexDBOperation

src/platform/IndexDB.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using namespace platform;
14
15AsyncIndexDBOperation::AsyncIndexDBOperation(const std::string &full_name, O_handler o_handler) : o_handler(o_handler) {
16 // std::cout << "AsyncIndexDBOperation open " << full_name << std::endl;
17 emscripten_fetch_attr_t attr;
18 emscripten_fetch_attr_init(&attr);
19 strcpy(attr.requestMethod, "GET");
20 attr.attributes = EMSCRIPTEN_FETCH_NO_DOWNLOAD | EMSCRIPTEN_FETCH_LOAD_TO_MEMORY;
21 attr.userData = this;
22 attr.onsuccess = static_success;
23 attr.onerror = static_failed;
24 fetch = emscripten_fetch(&attr, full_name.c_str());
25}
26
27// Save
28AsyncIndexDBOperation::AsyncIndexDBOperation(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected