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

Function fromwire_peektypen

wire/fromwire.c:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

convert_layer_dataFunction · 0.85
populate_layerFunction · 0.85
fromwire_peektypeFunction · 0.85

Calls 2

be16_to_cpuFunction · 0.85
fromwireFunction · 0.70

Tested by

no test coverage detected