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