MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / Read

Method Read

modules/engine/runtime/serde/json/reader.cpp:28–34  ·  view source on GitHub ↗

primitive types

Source from the content-addressed store, hash-verified

26{
27// primitive types
28error_code ReadTrait<bool>::Read(simdjson::ondemand::value&& json, bool& value)
29{
30 auto result = json.get_bool();
31 if (result.error() == simdjson::SUCCESS)
32 value = result.value_unsafe();
33 return (error_code)result.error();
34}
35error_code ReadTrait<int8_t>::Read(simdjson::ondemand::value&& json, int8_t& value)
36{
37 auto result = json.get_int64();

Callers

nothing calls this directly

Calls 15

skr_parse_md5Function · 0.85
get_int64Method · 0.80
get_uint64Method · 0.80
get_arrayMethod · 0.80
count_elementsMethod · 0.80
set_guidMethod · 0.80
make_guidFunction · 0.50
StringClass · 0.50
get_boolMethod · 0.45
errorMethod · 0.45
get_doubleMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected