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

Function prefix_arr

tests/fuzz/wire.h:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <wire/peer_wire.h>
14
15static u8 *prefix_arr(const u8 *data, size_t size, u16 prefix)
16{
17 u8 *p = tal_arr(NULL, u8, 0);
18 towire_u16(&p, prefix);
19 towire(&p, data, size);
20 return p;
21}
22
23/* The init function used by all fuzz-wire-* targets. */
24void init(int *argc, char ***argv)

Callers

nothing calls this directly

Calls 2

towire_u16Function · 0.50
towireFunction · 0.50

Tested by

no test coverage detected