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

Function printwire_tu16

devtools/print_wire.c:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool printwire_tu16(const char *fieldname, const u8 **cursor, size_t *plen)
55{
56 u16 v = fromwire_tu16(cursor, plen);
57 if (!*cursor) {
58 printf("**TRUNCATED tu16 %s**\n", fieldname);
59 return false;
60 }
61 printf("%u\n", v);
62 return true;
63}
64
65bool printwire_tu32(const char *fieldname, const u8 **cursor, size_t *plen)
66{

Callers

nothing calls this directly

Calls 1

fromwire_tu16Function · 0.85

Tested by

no test coverage detected