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

Function tlv_overhead

connectd/queries.c:556–559  ·  view source on GitHub ↗

FIXME: This assumes that the tlv type encodes into 1 byte! */

Source from the content-addressed store, hash-verified

554
555/* FIXME: This assumes that the tlv type encodes into 1 byte! */
556static size_t tlv_overhead(size_t num_entries, size_t size)
557{
558 return 1 + bigsize_len(num_entries * size);
559}
560
561/* How many entries can I fit in a reply? */
562static size_t max_entries(enum query_option_flags query_option_flags)

Callers 1

max_entriesFunction · 0.85

Calls 1

bigsize_lenFunction · 0.85

Tested by

no test coverage detected