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

Function fromwire_feature_set

common/features.c:563–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563struct feature_set *fromwire_feature_set(const tal_t *ctx,
564 const u8 **cursor, size_t *max)
565{
566 struct feature_set *fset = tal(ctx, struct feature_set);
567
568 for (size_t i = 0; i < ARRAY_SIZE(fset->bits); i++)
569 fset->bits[i] = fromwire_tal_arrn(fset, cursor, max,
570 fromwire_u16(cursor, max));
571
572 if (!*cursor)
573 return tal_free(fset);
574 return fset;
575}
576
577void towire_feature_set(u8 **pptr, const struct feature_set *fset)
578{

Callers 1

fromwire_new_stateFunction · 0.85

Calls 3

tal_freeFunction · 0.85
fromwire_tal_arrnFunction · 0.50
fromwire_u16Function · 0.50

Tested by

no test coverage detected