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

Method get

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

Source from the content-addressed store, hash-verified

2853
2854 # Get the struct value
2855 def get(self, fbe_value=None):
2856 if fbe_value is None:
2857 fbe_value = StructSimple()
2858
2859 self._buffer.shift(self.fbe_offset)
2860 fbe_size = self.get_fields(fbe_value)
2861 self._buffer.unshift(self.fbe_offset)
2862 return fbe_value, fbe_size
2863
2864 # Get the struct fields values
2865 def get_fields(self, fbe_value):

Callers

nothing calls this directly

Calls 4

get_fieldsMethod · 0.95
StructSimpleClass · 0.70
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected