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

Function printwire_u16

devtools/print_wire.c:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21bool printwire_u16(const char *fieldname, const u8 **cursor, size_t *plen)
22{
23 u16 v = fromwire_u16(cursor, plen);
24 if (!*cursor) {
25 printf("**TRUNCATED u16 %s**\n", fieldname);
26 return false;
27 }
28 printf("%u\n", v);
29 return true;
30}
31
32bool printwire_u32(const char *fieldname, const u8 **cursor, size_t *plen)
33{

Callers

nothing calls this directly

Calls 1

fromwire_u16Function · 0.50

Tested by

no test coverage detected