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

Function codeblob

lua/lparser.c:155–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154
155static void codeblob(LexState *ls, expdesc *e, TString *s) {
156 const char *err;
157 void *blob;
158 char *buf = luabb_newblob(ls->L, s->tsv.len / 2, &blob);
159 if (parseblob(getstr(s), s->tsv.len, buf) != 0) goto bad;
160 Udata *u = (Udata *)((char *)blob - sizeof(Udata));
161 init_exp(e, VK, luaK_udataK(ls->fs, u));
162 return;
163bad:
164 err = luaO_pushfstring(ls->L, "bad blob literal: %s", getstr(s));
165 luaX_lexerror(ls, err, 0);
166}
167
168
169static void checkname(LexState *ls, expdesc *e) {

Callers 2

funcargsFunction · 0.85
simpleexpFunction · 0.85

Calls 7

luabb_newblobFunction · 0.85
parseblobFunction · 0.85
getstrFunction · 0.85
init_expFunction · 0.85
luaK_udataKFunction · 0.85
luaO_pushfstringFunction · 0.85
luaX_lexerrorFunction · 0.85

Tested by

no test coverage detected