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

Function printwire_u32

devtools/print_wire.c:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36bool printwire_u32(const char *fieldname, const u8 **cursor, size_t *plen)
37{
38 u32 v = fromwire_u32(cursor, plen);
39 if (!*cursor) {
40 printf("**TRUNCATED u32 %s**\n", fieldname);
41 return false;
42 }
43 printf("%u\n", v);
44 return true;
45}
46
47bool printwire_u64(const char *fieldname, const u8 **cursor, size_t *plen)
48{

Callers

nothing calls this directly

Calls 1

fromwire_u32Function · 0.50

Tested by

no test coverage detected