MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / setarrayvector

Function setarrayvector

deps/lua/src/ltable.c:263–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262
263static void setarrayvector (lua_State *L, Table *t, int size) {
264 int i;
265 luaM_reallocvector(L, t->array, t->sizearray, size, TValue);
266 for (i=t->sizearray; i<size; i++)
267 setnilvalue(&t->array[i]);
268 t->sizearray = size;
269}
270
271
272static void setnodevector (lua_State *L, Table *t, int size) {

Callers 2

resizeFunction · 0.85
luaH_newFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected