MCPcopy Create free account
hub / github.com/ejoy/ejoy2d / luaH_newkey

Function luaH_newkey

lua/ltable.c:441–491  ·  view source on GitHub ↗

** inserts a new key into a hash table; first, check whether key's main ** position is free. If not, check whether colliding node is in its main ** position or not: if it is not, move colliding node to an empty place and ** put new key in its main position; otherwise (colliding node is in its main ** position), new key goes to an empty position. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

luaV_settableFunction · 0.85
luaH_setFunction · 0.85
luaH_setintFunction · 0.85

Calls 6

luaG_runerrorFunction · 0.85
numisintegerFunction · 0.85
mainpositionFunction · 0.85
getfreeposFunction · 0.85
rehashFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected