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

Function fromwire_fail

wire/fromwire.c:16–21  ·  view source on GitHub ↗

Sets *cursor to NULL and returns NULL when extraction fails. */

Source from the content-addressed store, hash-verified

14
15/* Sets *cursor to NULL and returns NULL when extraction fails. */
16void *fromwire_fail(const u8 **cursor, size_t *max)
17{
18 *cursor = NULL;
19 *max = 0;
20 return NULL;
21}
22
23const u8 *fromwire(const u8 **cursor, size_t *max, void *copy, size_t n)
24{

Callers 15

fromwireFunction · 0.70
fromwire_tlv_uintFunction · 0.70
fromwire_boolFunction · 0.70
fromwire_utf8_arrayFunction · 0.70
fromwire_tal_arrnFunction · 0.70
fromwire_wirestringFunction · 0.70
fromwire_tlvFunction · 0.70
fromwire_wally_tx_inputFunction · 0.50
fromwire_wally_tx_outputFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected