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

Function printwire_u8

devtools/print_wire.c:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

fromwire_u8Function · 0.50

Tested by

no test coverage detected