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

Function luabb_pushblob

lua/ltypes.c:2135–2143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2133}
2134
2135void luabb_pushblob(lua_State *lua, const blob_t *val)
2136{
2137 lua_blob_t *i;
2138 l_blob_new(lua);
2139 i = (lua_blob_t*) lua_topointer(lua, -1);
2140 i->val.length = val->length;
2141 i->val.data = malloc(val->length);
2142 memcpy(i->val.data, val->data, val->length);
2143}
2144
2145// dl -> str'dup'-less
2146void luabb_pushblob_dl(lua_State *lua, const blob_t *val)

Callers 8

l_blob_indexFunction · 0.85
luabb_typeconvert_intFunction · 0.85
lua_sql_stepFunction · 0.85
push_blob_arrayFunction · 0.85
push_paramFunction · 0.85
push_argsFunction · 0.85
push_trigger_args_intFunction · 0.85
sqlite_to_luaFunction · 0.85

Calls 3

l_blob_newFunction · 0.85
lua_topointerFunction · 0.85
mallocFunction · 0.85

Tested by

no test coverage detected