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

Method size

tools/generate-wire.py:92–99  ·  view source on GitHub ↗
(self, implicit_expression=None)

Source from the content-addressed store, hash-verified

90 return bool(self.extension_names)
91
92 def size(self, implicit_expression=None):
93 if self.count:
94 return self.count
95 if self.len_field:
96 return self.len_field
97 assert self.is_implicit_len()
98 assert implicit_expression
99 return implicit_expression
100
101 def needs_context(self):
102 """ A field needs a context if it's varsized """

Callers

nothing calls this directly

Calls 1

is_implicit_lenMethod · 0.95

Tested by

no test coverage detected