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

Method get

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

Source from the content-addressed store, hash-verified

6534
6535 # Get the struct value
6536 def get(self, fbe_value=None):
6537 if fbe_value is None:
6538 fbe_value = StructOptional()
6539
6540 self._buffer.shift(self.fbe_offset)
6541 fbe_size = self.get_fields(fbe_value)
6542 self._buffer.unshift(self.fbe_offset)
6543 return fbe_value, fbe_size
6544
6545 # Get the struct fields values
6546 def get_fields(self, fbe_value):

Callers

nothing calls this directly

Calls 4

get_fieldsMethod · 0.95
StructOptionalClass · 0.70
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected