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

Function fromwire_bigsize

common/bigsize.c:104–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104bigsize_t fromwire_bigsize(const u8 **cursor, size_t *max)
105{
106 bigsize_t v;
107 size_t len = bigsize_get(*cursor, *max, &v);
108
109 if (len == 0) {
110 fromwire_fail(cursor, max);
111 return 0;
112 }
113 assert(len <= *max);
114 fromwire(cursor, max, NULL, len);
115 return v;
116}
117
118void towire_bigsize(u8 **pptr, const bigsize_t val)
119{

Callers 9

process_onionpacketFunction · 0.70
onion_decodeFunction · 0.70
decode_scid_query_flagsFunction · 0.70
handle_onion_messageFunction · 0.50
runFunction · 0.50
tlv_field_offsetFunction · 0.50
fromwire_tlvFunction · 0.50
mainFunction · 0.50
printwire_tlvsFunction · 0.50

Calls 3

bigsize_getFunction · 0.70
fromwire_failFunction · 0.50
fromwireFunction · 0.50

Tested by

no test coverage detected