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

Method get

projects/Python/proto/enums.py:4049–4056  ·  view source on GitHub ↗
(self, fbe_value=None)

Source from the content-addressed store, hash-verified

4047
4048 # Get the struct value
4049 def get(self, fbe_value=None):
4050 if fbe_value is None:
4051 fbe_value = Enums()
4052
4053 self._buffer.shift(self.fbe_offset)
4054 fbe_size = self.get_fields(fbe_value)
4055 self._buffer.unshift(self.fbe_offset)
4056 return fbe_value, fbe_size
4057
4058 # Get the struct fields values
4059 def get_fields(self, fbe_value):

Callers

nothing calls this directly

Calls 4

get_fieldsMethod · 0.95
EnumsClass · 0.70
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected