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

Function towire_onionreply

common/onionreply.c:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <wire/wire.h>
6
7void towire_onionreply(u8 **cursor, const struct onionreply *r)
8{
9 towire_u16(cursor, tal_count(r->contents));
10 towire_u8_array(cursor, r->contents, tal_count(r->contents));
11}
12
13struct onionreply *fromwire_onionreply(const tal_t *ctx,
14 const u8 **cursor, size_t *max)

Callers 1

towire_failed_htlcFunction · 0.85

Calls 2

towire_u16Function · 0.50
towire_u8_arrayFunction · 0.50

Tested by

no test coverage detected