MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _convert_array

Function _convert_array

core/variant/variant.cpp:1507–1516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1505
1506template <typename DA, typename SA>
1507inline DA _convert_array(const SA &p_array) {
1508 DA da;
1509 da.resize(p_array.size());
1510
1511 for (int i = 0; i < p_array.size(); i++) {
1512 da.set(i, Variant(p_array.get(i)));
1513 }
1514
1515 return da;
1516}
1517
1518template <typename DA>
1519inline DA _convert_array_from_variant(const Variant &p_variant) {

Callers

nothing calls this directly

Calls 5

VariantClass · 0.70
sizeMethod · 0.65
resizeMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected