| 10 | } |
| 11 | |
| 12 | struct onionreply *fromwire_onionreply(const tal_t *ctx, |
| 13 | const u8 **cursor, size_t *max) |
| 14 | { |
| 15 | struct onionreply *r = tal(ctx, struct onionreply); |
| 16 | r->contents = fromwire_tal_arrn(r, cursor, max, |
| 17 | fromwire_u16(cursor, max)); |
| 18 | if (!*cursor) |
| 19 | return tal_free(r); |
| 20 | return r; |
| 21 | } |
| 22 | |
| 23 | struct onionreply *dup_onionreply(const tal_t *ctx, |
| 24 | const struct onionreply *r TAKES) |
no test coverage detected