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

Method get

projects/Python/proto/test.py:9914–9921  ·  view source on GitHub ↗
(self, fbe_value=None)

Source from the content-addressed store, hash-verified

9912
9913 # Get the struct value
9914 def get(self, fbe_value=None):
9915 if fbe_value is None:
9916 fbe_value = StructArray()
9917
9918 self._buffer.shift(self.fbe_offset)
9919 fbe_size = self.get_fields(fbe_value)
9920 self._buffer.unshift(self.fbe_offset)
9921 return fbe_value, fbe_size
9922
9923 # Get the struct fields values
9924 def get_fields(self, fbe_value):

Callers

nothing calls this directly

Calls 4

get_fieldsMethod · 0.95
StructArrayClass · 0.70
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected