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

Method get

projects/Python/proto/protoex.py:1649–1656  ·  view source on GitHub ↗
(self, fbe_value=None)

Source from the content-addressed store, hash-verified

1647
1648 # Get the struct value
1649 def get(self, fbe_value=None):
1650 if fbe_value is None:
1651 fbe_value = Balance()
1652
1653 self._buffer.shift(self.fbe_offset)
1654 fbe_size = self.get_fields(fbe_value)
1655 self._buffer.unshift(self.fbe_offset)
1656 return fbe_value, fbe_size
1657
1658 # Get the struct fields values
1659 def get_fields(self, fbe_value):

Callers

nothing calls this directly

Calls 4

get_fieldsMethod · 0.95
BalanceClass · 0.70
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected