MCPcopy Create free account
hub / github.com/ElementsProject/lightning / rune_restr_from_string

Function rune_restr_from_string

ccan/ccan/rune/coding.c:313–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313struct rune_restr *rune_restr_from_string(const tal_t *ctx,
314 const char *str,
315 size_t len)
316{
317 struct rune_restr *restr;
318
319 restr = rune_restr_decode(NULL, &str, &len);
320 /* Don't allow trailing chars */
321 if (restr && len != 0)
322 restr = tal_free(restr);
323 return tal_steal(ctx, restr);
324}
325
326static void to_string(struct wbuf *wbuf, const struct rune *rune, u8 *hash32)
327{

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

rune_restr_decodeFunction · 0.85
tal_freeFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68