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

Function printwire_u8

devtools/print_wire.c:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <stdio.h>
13
14bool printwire_u8(const char *fieldname, const u8 **cursor, size_t *plen)
15{
16 u8 v = fromwire_u8(cursor, plen);
17 if (!*cursor) {
18 printf("**TRUNCATED u8 %s**\n", fieldname);
19 return false;
20 }
21 printf("%u\n", v);
22 return true;
23}
24
25bool printwire_u16(const char *fieldname, const u8 **cursor, size_t *plen)
26{

Callers

nothing calls this directly

Calls 1

fromwire_u8Function · 0.50

Tested by

no test coverage detected