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

Function towire

wire/towire.c:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <common/utils.h>
8
9void towire(u8 **pptr, const void *data, size_t len)
10{
11 size_t oldsize = tal_count(*pptr);
12
13 tal_resize(pptr, oldsize + len);
14 /* The C standards committee has a lot to answer for :( */
15 if (len)
16 memcpy(*pptr + oldsize, memcheck(data, len), len);
17}
18
19void towire_u8(u8 **pptr, u8 v)
20{

Callers 15

towire_tlvstream_rawFunction · 0.70
towire_tlvFunction · 0.70
towire_u8Function · 0.70
towire_u16Function · 0.70
towire_u32Function · 0.70
towire_u64Function · 0.70
towire_tlv_uintFunction · 0.70
towire_boolFunction · 0.70
towire_sha256Function · 0.70
towire_ripemd160Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected