MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / loadAsyncData

Method loadAsyncData

Source/Basic/Content.cpp:1187–1191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185}
1186
1187void Content::loadAsyncData(String filename, const std::function<void(OwnArray<uint8_t>&&, size_t)>& callback) {
1188 Content::loadAsyncUnsafe(filename, [callback](uint8_t* buffer, int64_t size) {
1189 callback(MakeOwnArray(buffer), s_cast<size_t>(size));
1190 });
1191}
1192
1193void Content::loadAsyncBX(String filename, const std::function<void(const bgfx::Memory*)>& callback) {
1194 Content::loadAsyncUnsafe(filename, [callback](uint8_t* buffer, int64_t size) {

Callers 5

loadAsyncMethod · 0.80
dora_yue_compileFunction · 0.80
Content_loadExcelAsyncFunction · 0.80
DB_insertAsync01Function · 0.80
executeMainFileAsyncMethod · 0.80

Calls 1

MakeOwnArrayFunction · 0.85

Tested by

no test coverage detected