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

Function fromwire_peektype

wire/fromwire.c:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42int fromwire_peektype(const u8 *cursor)
43{
44 be16 be_type;
45 size_t max = tal_count(cursor);
46
47 fromwire(&cursor, &max, &be_type, sizeof(be_type));
48 if (!cursor)
49 return -1;
50 return be16_to_cpu(be_type);
51}
52
53u8 fromwire_u8(const u8 **cursor, size_t *max)
54{

Callers 15

is_msg_for_gossipdFunction · 0.70
handle_recv_gossipFunction · 0.50
connectd_reqFunction · 0.50
inject_gossipFunction · 0.50
recv_reqFunction · 0.50
upgrade_fieldFunction · 0.50
delete_by_indexFunction · 0.50
gossip_store_loadFunction · 0.50
bad_gossip_orderFunction · 0.50
bad_req_fmtFunction · 0.50

Calls 2

be16_to_cpuFunction · 0.85
fromwireFunction · 0.70

Tested by

no test coverage detected