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

Method get

projects/Python/proto/protoex.py:2357–2364  ·  view source on GitHub ↗
(self, fbe_value=None)

Source from the content-addressed store, hash-verified

2355
2356 # Get the struct value
2357 def get(self, fbe_value=None):
2358 if fbe_value is None:
2359 fbe_value = Account()
2360
2361 self._buffer.shift(self.fbe_offset)
2362 fbe_size = self.get_fields(fbe_value)
2363 self._buffer.unshift(self.fbe_offset)
2364 return fbe_value, fbe_size
2365
2366 # Get the struct fields values
2367 def get_fields(self, fbe_value):

Callers

nothing calls this directly

Calls 4

get_fieldsMethod · 0.95
AccountClass · 0.70
shiftMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected