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

Method get_hash

core/object/method_bind.cpp:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#include "method_bind.h"
44
45uint32_t MethodBind::get_hash() const {
46 MethodInfo mi;
47 mi.return_val = get_return_info();
48 mi.flags = get_hint_flags();
49 for (int i = 0; i < get_argument_count(); i++) {
50 mi.arguments.push_back(get_argument_info(i));
51 }
52 mi.default_arguments = default_arguments;
53
54 return mi.get_compatibility_hash();
55}
56
57PropertyInfo MethodBind::get_argument_info(int p_argument) const {
58 ERR_FAIL_INDEX_V(p_argument, get_argument_count(), PropertyInfo());

Calls 4

get_hint_flagsFunction · 0.85
get_argument_countFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected