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

Function tlv_overhead

connectd/queries.c:513–516  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

511
512/* FIXME: This assumes that the tlv type encodes into 1 byte! */
513static size_t tlv_overhead(size_t num_entries, size_t size)
514{
515 return 1 + bigsize_len(num_entries * size);
516}
517
518/* How many entries can I fit in a reply? */
519static 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