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

Function fromwire_opt_bool

plugins/askrene/datastore_wire.c:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static bool *fromwire_opt_bool(const tal_t *ctx, const u8 **cursor, size_t *len)
62{
63 bool *v;
64
65 if (!fromwire_bool(cursor, len))
66 return NULL;
67 v = tal(ctx, bool);
68 *v = fromwire_bool(cursor, len);
69 return v;
70}
71
72static const char *fromwire_opt_wirestring(const tal_t *ctx,
73 const u8 **cursor, size_t *len)

Callers 1

Calls 1

fromwire_boolFunction · 0.50

Tested by

no test coverage detected