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

Function fromwire_opt_u32

plugins/askrene/datastore_wire.c:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static u32 *fromwire_opt_u32(const tal_t *ctx, const u8 **cursor, size_t *len)
40{
41 u32 *v;
42
43 if (!fromwire_bool(cursor, len))
44 return NULL;
45 v = tal(ctx, u32);
46 *v = fromwire_u32(cursor, len);
47 return v;
48}
49
50static u16 *fromwire_opt_u16(const tal_t *ctx, const u8 **cursor, size_t *len)
51{

Callers 1

Calls 2

fromwire_boolFunction · 0.50
fromwire_u32Function · 0.50

Tested by

no test coverage detected