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

Function fromwire_feature_set

common/features.c:549–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549struct feature_set *fromwire_feature_set(const tal_t *ctx,
550 const u8 **cursor, size_t *max)
551{
552 struct feature_set *fset = tal(ctx, struct feature_set);
553
554 for (size_t i = 0; i < ARRAY_SIZE(fset->bits); i++)
555 fset->bits[i] = fromwire_tal_arrn(fset, cursor, max,
556 fromwire_u16(cursor, max));
557
558 if (!*cursor)
559 return tal_free(fset);
560 return fset;
561}
562
563void towire_feature_set(u8 **pptr, const struct feature_set *fset)
564{

Callers

nothing calls this directly

Calls 3

tal_freeFunction · 0.85
fromwire_tal_arrnFunction · 0.50
fromwire_u16Function · 0.50

Tested by

no test coverage detected