MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / concretesize

Function concretesize

third-party/lua-5.5.0/src/ltable.c:544–549  ·  view source on GitHub ↗

** Convert an "abstract size" (number of slots in an array) to ** "concrete size" (number of bytes in the array). */

Source from the content-addressed store, hash-verified

542** "concrete size" (number of bytes in the array).
543*/
544static size_t concretesize (unsigned int size) {
545 if (size == 0)
546 return 0;
547 else /* space for the two arrays plus an unsigned in between */
548 return size * (sizeof(Value) + 1) + sizeof(unsigned);
549}
550
551
552/*

Callers 2

resizearrayFunction · 0.85
luaH_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected