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

Function content_load

Source/Wasm/WasmRuntime.cpp:1807–1813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1805/* Content */
1806
1807DORA_EXPORT int64_t content_load(int64_t filename) {
1808 auto result = SharedContent.load(*Str_From(filename));
1809 if (result.second > 0) {
1810 return Str_Retain({r_cast<char*>(result.first.get()), result.second});
1811 }
1812 return 0;
1813}
1814
1815/* Entity */
1816

Callers 1

loadMethod · 0.85

Calls 4

Str_FromFunction · 0.85
Str_RetainFunction · 0.85
loadMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected