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

Method get

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

Source from the content-addressed store, hash-verified

12008
12009 # Get the struct value
12010 def get(self, fbe_value=None):
12011 if fbe_value is None:
12012 fbe_value = StructList()
12013
12014 self._buffer.shift(self.fbe_offset)
12015 fbe_size = self.get_fields(fbe_value)
12016 self._buffer.unshift(self.fbe_offset)
12017 return fbe_value, fbe_size
12018
12019 # Get the struct fields values
12020 def get_fields(self, fbe_value):

Callers

nothing calls this directly

Calls 4

get_fieldsMethod · 0.95
StructListClass · 0.70
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected