| 549 | void mp_decode_to_lua_type(lua_State *L, mp_cur *c); |
| 550 | |
| 551 | void mp_decode_to_lua_array(lua_State *L, mp_cur *c, size_t len) { |
| 552 | assert(len <= UINT_MAX); |
| 553 | int index = 1; |
| 554 | |
| 555 | lua_newtable(L); |
| 556 | luaL_checkstack(L, 1, "in function mp_decode_to_lua_array"); |
| 557 | while(len--) { |
| 558 | lua_pushnumber(L,index++); |
| 559 | mp_decode_to_lua_type(L,c); |
| 560 | if (c->err) return; |
| 561 | lua_settable(L,-3); |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | void mp_decode_to_lua_hash(lua_State *L, mp_cur *c, size_t len) { |
| 566 | assert(len <= UINT_MAX); |
no test coverage detected