MCPcopy Create free account
hub / github.com/AshenvaleZX/ZXEngine / luaH_resize

Function luaH_resize

CPPScripts/External/Lua/ltable.c:551–585  ·  view source on GitHub ↗

** Resize table 't' for the new given sizes. Both allocations (for ** the hash part and for the array part) can fail, which creates some ** subtleties. If the first allocation, for the hash part, fails, an ** error is raised and that is it. Otherwise, it copies the elements from ** the shrinking part of the array (if it is shrinking) into the new ** hash. Then it reallocates the array part. If th

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

luaV_executeFunction · 0.85
init_registryFunction · 0.85
luaH_resizearrayFunction · 0.85
rehashFunction · 0.85
lua_createtableFunction · 0.85

Calls 6

setlimittosizeFunction · 0.85
setnodevectorFunction · 0.85
exchangehashpartFunction · 0.85
luaH_setintFunction · 0.85
freehashFunction · 0.85
reinsertFunction · 0.85

Tested by

no test coverage detected