| 547 | } |
| 548 | |
| 549 | struct 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 | |
| 563 | void towire_feature_set(u8 **pptr, const struct feature_set *fset) |
| 564 | { |
nothing calls this directly
no test coverage detected