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

Method get

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

Source from the content-addressed store, hash-verified

14842
14843 # Get the struct value
14844 def get(self, fbe_value=None):
14845 if fbe_value is None:
14846 fbe_value = StructHash()
14847
14848 self._buffer.shift(self.fbe_offset)
14849 fbe_size = self.get_fields(fbe_value)
14850 self._buffer.unshift(self.fbe_offset)
14851 return fbe_value, fbe_size
14852
14853 # Get the struct fields values
14854 def get_fields(self, fbe_value):

Callers

nothing calls this directly

Calls 4

get_fieldsMethod · 0.95
StructHashClass · 0.70
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected