MCPcopy Create free account
hub / github.com/FDio/vpp / resolveAllSize

Method resolveAllSize

extras/packetforge/ProtocolHeader.py:175–186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 )
174
175 def resolveAllSize(self):
176 for phf in self.fields:
177 if phf.Field.Optional != None and not self.resolveOptional(
178 phf.Field.Optional
179 ):
180 size = 0
181 else:
182 if phf.Field.VariableSize != None:
183 size = self.resolveSize(phf.Field.VariableSize)
184 else:
185 size = phf.Field.Size
186 phf.Size = size
187
188 def GetSize(self):
189 size = 0

Callers 1

AdjustMethod · 0.95

Calls 2

resolveOptionalMethod · 0.95
resolveSizeMethod · 0.95

Tested by

no test coverage detected