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

Method get

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

Source from the content-addressed store, hash-verified

13387
13388 # Get the struct value
13389 def get(self, fbe_value=None):
13390 if fbe_value is None:
13391 fbe_value = StructMap()
13392
13393 fbe_begin = self.get_begin()
13394 if fbe_begin == 0:
13395 return fbe_value
13396
13397 fbe_struct_size = self.read_uint32(0)
13398 self.get_fields(fbe_value, fbe_struct_size)
13399 self.get_end(fbe_begin)
13400 return fbe_value
13401
13402 # Get the struct fields values
13403 def get_fields(self, fbe_value, fbe_struct_size):

Callers

nothing calls this directly

Calls 5

get_beginMethod · 0.95
get_fieldsMethod · 0.95
get_endMethod · 0.95
StructMapClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected