| 561 | } |
| 562 | |
| 563 | struct 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 | |
| 577 | void towire_feature_set(u8 **pptr, const struct feature_set *fset) |
| 578 | { |
no test coverage detected