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

Function strbuf_hex

util/strbuf.c:169–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void strbuf_hex(strbuf *buf, void *tohex, int len)
170{
171 int strsz = (2 * len);
172 char *hexst = malloc(strsz + 1);
173 char *output = util_tohex(hexst, tohex, len);
174 strbuf_appendf(buf, output, strsz);
175 free(hexst);
176}

Callers 2

json_blobFunction · 0.85
json_recordFunction · 0.85

Calls 4

mallocFunction · 0.85
freeFunction · 0.85
util_tohexFunction · 0.70
strbuf_appendfFunction · 0.70

Tested by

no test coverage detected