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

Function tlvstream_get_raw

wire/tlvstream.c:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

tlvstream_set_rawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected