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

Method get

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

Source from the content-addressed store, hash-verified

15767
15768 # Get the struct value
15769 def get(self, fbe_value=None):
15770 if fbe_value is None:
15771 fbe_value = StructEmpty()
15772
15773 fbe_begin = self.get_begin()
15774 if fbe_begin == 0:
15775 return fbe_value
15776
15777 fbe_struct_size = self.read_uint32(0)
15778 self.get_fields(fbe_value, fbe_struct_size)
15779 self.get_end(fbe_begin)
15780 return fbe_value
15781
15782 # Get the struct fields values
15783 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
StructEmptyClass · 0.70
read_uint32Method · 0.45

Tested by

no test coverage detected