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

Method AppendAuto

extras/packetforge/ProtocolHeader.py:196–201  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

194 return size >> 3
195
196 def AppendAuto(self, size):
197 for phf in self.fields:
198 if not phf.Field.IsAutoIncrease:
199 continue
200
201 phf.UpdateValue(ExpressionConverter.IncreaseValue(phf.Value, size), True)
202
203 def getField(self, name):
204 if name not in self.fieldDict:

Callers 1

ForgeMethod · 0.80

Calls 1

UpdateValueMethod · 0.45

Tested by

no test coverage detected