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

Method get

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

Source from the content-addressed store, hash-verified

12499
12500 # Get the struct value
12501 def get(self, fbe_value=None):
12502 if fbe_value is None:
12503 fbe_value = StructSet()
12504
12505 fbe_begin = self.get_begin()
12506 if fbe_begin == 0:
12507 return fbe_value
12508
12509 fbe_struct_size = self.read_uint32(0)
12510 self.get_fields(fbe_value, fbe_struct_size)
12511 self.get_end(fbe_begin)
12512 return fbe_value
12513
12514 # Get the struct fields values
12515 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
StructSetClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected