MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / get_fields

Method get_fields

projects/Python/proto/protoex.py:1464–1475  ·  view source on GitHub ↗
(self, fbe_value, fbe_struct_size)

Source from the content-addressed store, hash-verified

1462
1463 # Get the struct fields values
1464 def get_fields(self, fbe_value, fbe_struct_size):
1465 fbe_current_size = 4 + 4
1466
1467 if (fbe_current_size + self.parent.fbe_body - 4 - 4) <= fbe_struct_size:
1468 self.parent.get_fields(fbe_value, fbe_struct_size)
1469 fbe_current_size += self.parent.fbe_body - 4 - 4
1470
1471 if (fbe_current_size + self.locked.fbe_size) <= fbe_struct_size:
1472 fbe_value.locked = self.locked.get(float(0.0))
1473 else:
1474 fbe_value.locked = float(0.0)
1475 fbe_current_size += self.locked.fbe_size
1476
1477 # Set the struct value (begin phase)
1478 def set_begin(self):

Callers 1

getMethod · 0.95

Calls 2

get_fieldsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected