MCPcopy Create free account
hub / github.com/defold/defold / ToHash

Function ToHash

engine/script/src/script_hash.cpp:61–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 dmhash_t* ToHash(lua_State *L, int index)
62 {
63 return (dmhash_t*)dmScript::ToUserType(L, index, SCRIPT_HASH_TYPE_HASH);
64 }
65
66 /*# hashes a string
67 * All ids in the engine are represented as hashes, so a string needs to be hashed

Callers 8

URL_newindexFunction · 0.85
URL_newFunction · 0.85
ResolveURLFunction · 0.85
Hash_newFunction · 0.85
CheckHashOrStringFunction · 0.85
PushStringHelperFunction · 0.85
DoCheckTableFunction · 0.85

Calls 1

ToUserTypeFunction · 0.85

Tested by

no test coverage detected