MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / push_blob_array

Function push_blob_array

lua/sp.c:5822–5835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5820}
5821
5822static int push_blob_array(Lua L, struct param_data *p)
5823{
5824 struct {
5825 size_t len;
5826 void *data;
5827 } *bs = p->u.p;
5828 lua_newtable(L);
5829 for (int i = 0; i < p->arraylen; ++i) {
5830 blob_t b = {.length = bs[i].len, .data = bs[i].data};
5831 luabb_pushblob(L, &b);
5832 lua_rawseti(L, -2, i + 1);
5833 }
5834 return 0;
5835}
5836
5837static int push_string_array(Lua L, struct param_data *p)
5838{

Callers 1

push_paramFunction · 0.85

Calls 2

luabb_pushblobFunction · 0.85
lua_rawsetiFunction · 0.85

Tested by

no test coverage detected