MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_global_token

Method get_global_token

bytecode/bytecode_custom.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135GDScriptDecomp::GlobalToken GDScriptDecomp_custom::get_global_token(int p_token) const {
136 int idx = p_token & TOKEN_MASK;
137 if (idx < 0 || idx >= tokens.size()) {
138 return G_TK_MAX;
139 }
140 return tokens[idx];
141}
142
143int GDScriptDecomp_custom::get_local_token_val(GDScriptDecomp::GlobalToken p_token) const {
144 for (int i = 0; i < tokens.size(); i++) {

Callers 3

parse_scriptMethod · 0.45
_binary_to_tokenMethod · 0.45
get_tokenMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected