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

Function tlvstream_get_raw

wire/tlvstream.c:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static struct tlv_field *tlvstream_get_raw(struct tlv_field *stream, u64 type)
45{
46 for (size_t i=0; i<tal_count(stream); i++)
47 if (stream[i].numtype == type)
48 return &stream[i];
49 return NULL;
50}
51
52void tlvstream_set_raw(struct tlv_field **stream, u64 type, const void *value TAKES, size_t valuelen)
53{

Callers 1

tlvstream_set_rawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected