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

Function rune_restr_encode

ccan/ccan/rune/coding.c:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static void rune_restr_encode(const struct rune_restr *restr,
106 void (*cb)(const char *s, size_t len,
107 void *arg),
108 void *arg)
109{
110 for (size_t i = 0; i < tal_count(restr->alterns); i++) {
111 if (i != 0)
112 cb("|", 1, arg);
113 rune_altern_encode(restr->alterns[i], cb, arg);
114 }
115}
116
117void rune_sha256_add_restr(struct sha256_ctx *shactx,
118 struct rune_restr *restr)

Callers 2

rune_sha256_add_restrFunction · 0.85
to_stringFunction · 0.85

Calls 1

rune_altern_encodeFunction · 0.85

Tested by

no test coverage detected