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

Function print_hexstring

devtools/print_wire.c:97–109  ·  view source on GitHub ↗

Returns false if we ran out of data. */

Source from the content-addressed store, hash-verified

95
96/* Returns false if we ran out of data. */
97static bool print_hexstring(const u8 **cursor, size_t *plen, size_t len)
98{
99 while (len) {
100 u8 v = fromwire_u8(cursor, plen);
101 if (!*cursor) {
102 printf("**TRUNCATED**\n");
103 return false;
104 }
105 printf("%02x", v);
106 len--;
107 }
108 return true;
109}
110
111bool printwire_utf8_array(const char *fieldname, const u8 **cursor, size_t *plen, size_t len)
112{

Callers 4

printwire_utf8_arrayFunction · 0.85
printwire_addressesFunction · 0.85
printwire_u8_arrayFunction · 0.85

Calls 1

fromwire_u8Function · 0.50

Tested by

no test coverage detected