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

Function decode

tests/fuzz/fuzz-wire-ping.c:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17static struct ping *decode(const tal_t *ctx, const void *p)
18{
19 struct ping *s = tal(ctx, struct ping);
20
21 if (fromwire_ping(s, p, &s->num_pong_bytes, &s->ignored))
22 return s;
23 return tal_free(s);
24}
25
26static bool equal(const struct ping *x, const struct ping *y)
27{

Callers 9

mainFunction · 0.50
check_peer_lsp_statusFunction · 0.50
visit_strMethod · 0.50
decode_with_len_prefixFunction · 0.50
deserialize_by_keyFunction · 0.50
deserialize_by_keyFunction · 0.50
decode_lsps0_frame_hexFunction · 0.50

Calls 1

tal_freeFunction · 0.85

Tested by 3

decode_with_len_prefixFunction · 0.40