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

Function towire_onionreply

common/onionreply.c:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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