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

Method get

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

Source from the content-addressed store, hash-verified

2238
2239 # Get the struct value
2240 def get(self, fbe_value=None):
2241 if fbe_value is None:
2242 fbe_value = Account()
2243
2244 self._buffer.shift(self.fbe_offset)
2245 fbe_size = self.get_fields(fbe_value)
2246 self._buffer.unshift(self.fbe_offset)
2247 return fbe_value, fbe_size
2248
2249 # Get the struct fields values
2250 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