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

Method size

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

Source from the content-addressed store, hash-verified

86 return self.implicit_len
87
88 def size(self, implicit_expression=None):
89 if self.count:
90 return self.count
91 if self.len_field:
92 return self.len_field
93 assert self.is_implicit_len()
94 assert implicit_expression
95 return implicit_expression
96
97 def needs_context(self):
98 """ 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