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

Function Value_To

Source/Wasm/WasmRuntime.cpp:599–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599static Own<Value> Value_To(const dora_val_t& v) {
600 Own<Value> ov;
601 std::visit([&](auto&& arg) {
602 ov = Value::alloc(arg);
603 },
604 v);
605 return ov;
606}
607
608static int64_t Value_From(Value* v) {
609 if (!v) return 0;

Callers 9

array_setFunction · 0.85
array_addFunction · 0.85
array_insertFunction · 0.85
array_containsFunction · 0.85
array_indexFunction · 0.85
array_fast_removeFunction · 0.85
dictionary_setFunction · 0.85
entity_setFunction · 0.85
blackboard_setFunction · 0.85

Calls 2

visitFunction · 0.50
allocFunction · 0.50

Tested by

no test coverage detected