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

Function fromwire_opt_u16

plugins/askrene/datastore_wire.c:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static u16 *fromwire_opt_u16(const tal_t *ctx, const u8 **cursor, size_t *len)
51{
52 u16 *v;
53
54 if (!fromwire_bool(cursor, len))
55 return NULL;
56 v = tal(ctx, u16);
57 *v = fromwire_u16(cursor, len);
58 return v;
59}
60
61static bool *fromwire_opt_bool(const tal_t *ctx, const u8 **cursor, size_t *len)
62{

Callers 1

Calls 2

fromwire_boolFunction · 0.50
fromwire_u16Function · 0.50

Tested by

no test coverage detected