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

Function fromwire_onionreply

common/onionreply.c:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12struct onionreply *fromwire_onionreply(const tal_t *ctx,
13 const u8 **cursor, size_t *max)
14{
15 struct onionreply *r = tal(ctx, struct onionreply);
16 r->contents = fromwire_tal_arrn(r, cursor, max,
17 fromwire_u16(cursor, max));
18 if (!*cursor)
19 return tal_free(r);
20 return r;
21}
22
23struct onionreply *dup_onionreply(const tal_t *ctx,
24 const struct onionreply *r TAKES)

Callers 1

fromwire_failed_htlcFunction · 0.85

Calls 3

tal_freeFunction · 0.85
fromwire_tal_arrnFunction · 0.50
fromwire_u16Function · 0.50

Tested by

no test coverage detected