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

Method get

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

Source from the content-addressed store, hash-verified

8230
8231 # Get the struct value
8232 def get(self, fbe_value=None):
8233 if fbe_value is None:
8234 fbe_value = StructNested()
8235
8236 self._buffer.shift(self.fbe_offset)
8237 fbe_size = self.get_fields(fbe_value)
8238 self._buffer.unshift(self.fbe_offset)
8239 return fbe_value, fbe_size
8240
8241 # Get the struct fields values
8242 def get_fields(self, fbe_value):

Callers

nothing calls this directly

Calls 4

get_fieldsMethod · 0.95
StructNestedClass · 0.70
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected