MCPcopy Create free account
hub / github.com/crownengine/crown / load

Method load

src/device/user_config.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool UserConfig::load(File *file)
38{
39 TempAllocator4096 ta;
40 Buffer json(ta);
41
42 if (!file->is_open())
43 return false;
44
45 file->read_all(json);
46 array::push_back(json, '\0');
47 return parse(array::begin(json));
48}
49
50} // namespace crown

Callers 7

main_loopMethod · 0.45
html5_spin_untilMethod · 0.45
process_requestMethod · 0.45
runMethod · 0.45
statusFunction · 0.45
freeFunction · 0.45
load_apiFunction · 0.45

Calls 4

read_allMethod · 0.80
parseFunction · 0.50
beginFunction · 0.50
is_openMethod · 0.45

Tested by

no test coverage detected