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

Method loadInMainUnsafe

Source/Basic/Content.cpp:1486–1493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1484}
1485
1486uint8_t* Content::loadInMainUnsafe(String filename, int64_t& size) {
1487 PROFILE("FileIO"_slice);
1488 uint8_t* data = nullptr;
1489 _thread->runInMainSync([&]() {
1490 data = Content::loadUnsafe(filename, size);
1491 });
1492 return data;
1493}
1494
1495std::string Content::loadInMainUnsafe(String filename) {
1496 PROFILE("FileIO"_slice);

Callers 1

_readFileMethod · 0.80

Calls 1

runInMainSyncMethod · 0.80

Tested by

no test coverage detected