MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / _builtin_hash

Function _builtin_hash

src/builtin/module_builtin_runtime.cpp:864–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862 };
863
864 vec4f _builtin_hash ( Context & context, SimNode_CallBase * call, vec4f * args ) {
865 auto uhash = hash_value(context, args[0], call->types[0]);
866 return cast<uint64_t>::from(uhash);
867 }
868
869 void heap_stats ( Context & ctx, uint64_t * bytes ) {
870 bytes[0] = ctx.heap->bytesAllocated();

Callers

nothing calls this directly

Calls 1

hash_valueFunction · 0.85

Tested by

no test coverage detected